]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Accomodate different return codes on Windows
authorTim Kientzle <kientzle@acm.org>
Mon, 25 Apr 2016 03:35:45 +0000 (20:35 -0700)
committerTim Kientzle <kientzle@acm.org>
Mon, 25 Apr 2016 03:35:45 +0000 (20:35 -0700)
cat/test/test_error.c
cat/test/test_error_mixed.c

index 20d75352e20373989261aedfda9523a621bb1ad0..918af01be2dc727c667f44936249f219409e9254 100644 (file)
@@ -29,7 +29,7 @@ DEFINE_TEST(test_error)
        const char *reffile = "test_expand.error";
 
        assertFileNotExists(reffile);
-       assertEqualInt(256, systemf("%s %s >test.out 2>test.err", testprog, reffile));
+       assert(0 != systemf("%s %s >test.out 2>test.err", testprog, reffile));
 
        assertEmptyFile("test.out");
        assertNonEmptyFile("test.err");
index ac01e2ee8d859e46d68f91eed40d6648823e5437..7d94fce467aae8cfc1d58acee1fc18a92c574c35 100644 (file)
@@ -33,7 +33,7 @@ DEFINE_TEST(test_error_mixed)
        assertFileNotExists(reffile2);
        extract_reference_file(reffile1);
        extract_reference_file(reffile3);
-       assertEqualInt(256, systemf("%s %s %s %s >test.out 2>test.err",
+       assert(0 != systemf("%s %s %s %s >test.out 2>test.err",
            testprog, reffile1, reffile2, reffile3));
 
        assertTextFileContents(