From 1d5491bf41b48580585f2f1a7f266ac09ceec73e Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 19 Mar 2016 11:29:37 -0700 Subject: [PATCH] Issue #377: Help cpio tests pass on systems with large UIDs --- cpio/test/test_basic.c | 2 +- cpio/test/test_option_c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpio/test/test_basic.c b/cpio/test/test_basic.c index 7213062e8..f3a048002 100644 --- a/cpio/test/test_basic.c +++ b/cpio/test/test_basic.c @@ -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); diff --git a/cpio/test/test_option_c.c b/cpio/test/test_option_c.c index a634be10b..6aaba30ac 100644 --- a/cpio/test/test_option_c.c +++ b/cpio/test/test_option_c.c @@ -101,7 +101,7 @@ DEFINE_TEST(test_option_c) /* Use the cpio program to create an archive. */ fclose(filelist); - r = systemf("%s -oc basic.out 2>basic.err", testprog); + r = systemf("%s -R 1000:1000 -oc basic.out 2>basic.err", testprog); /* Verify that nothing went to stderr. */ assertTextFileContents("1 block\n", "basic.err"); -- 2.47.2