]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filekind/filekind.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / tests / filekind / filekind.cpp
index a7d81f81a45a6efbc5c33cdd807c01ec9255b39b..aa812b0884a94c77d3864543788fffe8b137bb48 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        tests/filetype/filetype.cpp
 // Purpose:     Test wxGetFileKind and wxStreamBase::IsSeekable
 // Author:      Mike Wetherell
-// RCS-ID:      $Id$
 // Copyright:   (c) 2005 Mike Wetherell
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -127,11 +126,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]);