X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..d9307d006e88025e28457290c9997f7c0f7c4fdc:/tests/filekind/filekind.cpp?ds=inline diff --git a/tests/filekind/filekind.cpp b/tests/filekind/filekind.cpp index fafe365c2b..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]); @@ -206,7 +208,7 @@ void FileKindTestCase::Stdin() // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION(FileKindTestCase); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(FileKindTestCase, "FileKindTestCase"); #endif // wxUSE_STREAMS