X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3778b4d9c7eebc39f496a9dd055638e06fb9140..32753ae949d861ddaf7c66f4c483bc57493c6c6c:/tests/filekind/filekind.cpp diff --git a/tests/filekind/filekind.cpp b/tests/filekind/filekind.cpp index a7d81f81a4..c948050d39 100644 --- a/tests/filekind/filekind.cpp +++ b/tests/filekind/filekind.cpp @@ -127,11 +127,13 @@ void FileKindTestCase::File() void FileKindTestCase::Pipe() { int afd[2]; + int rc; #ifdef __UNIX__ - pipe(afd); + rc = pipe(afd); #else - _pipe(afd, 256, O_BINARY); + rc = _pipe(afd, 256, O_BINARY); #endif + CPPUNIT_ASSERT_EQUAL_MESSAGE("Failed to create pipe", 0, rc); wxFile file0(afd[0]); wxFile file1(afd[1]);