]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue #377: Help cpio tests pass on systems with large UIDs
authorTim Kientzle <kientzle@acm.org>
Sat, 19 Mar 2016 18:29:37 +0000 (11:29 -0700)
committerTim Kientzle <kientzle@acm.org>
Sat, 19 Mar 2016 18:29:45 +0000 (11:29 -0700)
cpio/test/test_basic.c
cpio/test/test_option_c.c

index 7213062e8d2071089942d7144623424867cc6245..f3a048002a5557dace55166dba3b3e65caad39ab 100644 (file)
@@ -72,7 +72,7 @@ basic_cpio(const char *target,
            return;
 
        /* Use the cpio program to create an archive. */
-       r = systemf("%s -o %s < filelist >%s/archive 2>%s/pack.err",
+       r = systemf("%s -R 1000:1000 -o %s < filelist >%s/archive 2>%s/pack.err",
            testprog, pack_options, target, target);
        failure("Error invoking %s -o %s", testprog, pack_options);
        assertEqualInt(r, 0);
index a634be10ba7c6ed57ae99eb131591049bc2e9be6..6aaba30ac19aa9c4579cb9ec73f1bb4b0ac71420 100644 (file)
@@ -101,7 +101,7 @@ DEFINE_TEST(test_option_c)
 
        /* Use the cpio program to create an archive. */
        fclose(filelist);
-       r = systemf("%s -oc <filelist >basic.out 2>basic.err", testprog);
+       r = systemf("%s -R 1000:1000 -oc <filelist >basic.out 2>basic.err", testprog);
        /* Verify that nothing went to stderr. */
        assertTextFileContents("1 block\n", "basic.err");