diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index d6ac25692b..7e8262d0f8 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -672,7 +672,10 @@ void ArchiveTestCase::CreateArchive(wxOutputStream& out, wxString tmparc = fn.GetPath(wxPATH_GET_SEPARATOR) + fn.GetFullName(); // call the archiver to create an archive file - system(wxString::Format(archiver, tmparc.c_str()).mb_str()); + if ( system(wxString::Format(archiver, tmparc.c_str()).mb_str()) == -1 ) + { + wxLogError("Failed to run acrhiver command \"%s\"", archiver); + } // then load the archive file { @@ -895,7 +898,11 @@ void ArchiveTestCase::ExtractArchive(wxInputStream& in, } // call unarchiver - system(wxString::Format(unarchiver, tmparc.c_str()).mb_str()); + if ( system(wxString::Format(unarchiver, tmparc.c_str()).mb_str()) == -1 ) + { + wxLogError("Failed to run unarchiver command \"%s\"", unarchiver); + } + wxRemoveFile(tmparc); } else { 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]);