]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a failing tar test: On some systems (certain Linux systems
authorTim Kientzle <kientzle@gmail.com>
Tue, 5 Jan 2010 16:44:20 +0000 (11:44 -0500)
committerTim Kientzle <kientzle@gmail.com>
Tue, 5 Jan 2010 16:44:20 +0000 (11:44 -0500)
with security features enabled), the default tar format chooses
to include pax extensions, which confuses the validation logic in
this test.

SVN-Revision: 1805

tar/test/test_option_r.c

index 373d79c93ad73909a3bf18c25ad1fe2da38a3f0b..516a8307936cd628a0d25595bf1af26d1016f776 100644 (file)
@@ -44,7 +44,7 @@ DEFINE_TEST(test_option_r)
        fclose(f);
 
        /* Archive that one file. */
-       r = systemf("%s cf archive.tar f1 >step1.out 2>step1.err", testprog);
+       r = systemf("%s cf archive.tar --format=ustar f1 >step1.out 2>step1.err", testprog);
        failure("Error invoking %s cf archive.tar f1", testprog);
        assertEqualInt(r, 0);
 
@@ -74,7 +74,7 @@ DEFINE_TEST(test_option_r)
        fclose(f);
 
        /* Update the archive. */
-       r = systemf("%s rf archive.tar f1 >step2.out 2>step2.err", testprog);
+       r = systemf("%s rf archive.tar --format=ustar f1 >step2.out 2>step2.err", testprog);
        failure("Error invoking %s rf archive.tar f1", testprog);
        assertEqualInt(r, 0);