projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow for older GTK+ versions
[wxWidgets.git]
/
tests
/
filekind
/
filekind.cpp
diff --git
a/tests/filekind/filekind.cpp
b/tests/filekind/filekind.cpp
index a7d81f81a45a6efbc5c33cdd807c01ec9255b39b..c948050d393e43f96bd73eeea5ce1cda0cb56aa1 100644
(file)
--- a/
tests/filekind/filekind.cpp
+++ b/
tests/filekind/filekind.cpp
@@
-127,11
+127,13
@@
void FileKindTestCase::File()
void FileKindTestCase::Pipe()
{
int afd[2];
void FileKindTestCase::Pipe()
{
int afd[2];
+ int rc;
#ifdef __UNIX__
#ifdef __UNIX__
- pipe(afd);
+
rc =
pipe(afd);
#else
#else
- _pipe(afd, 256, O_BINARY);
+
rc =
_pipe(afd, 256, O_BINARY);
#endif
#endif
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Failed to create pipe", 0, rc);
wxFile file0(afd[0]);
wxFile file1(afd[1]);
wxFile file0(afd[0]);
wxFile file1(afd[1]);