From 3cbe135a1311744c8fc1c87f39c7006cd8157ff6 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 13 Feb 2016 22:13:22 -0800 Subject: [PATCH] Fix -c test: we forced uid/gid to 1000, so we should not compare against the current user --- cpio/test/test_option_c.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cpio/test/test_option_c.c b/cpio/test/test_option_c.c index 6aaba30ac..fa47b7e27 100644 --- a/cpio/test/test_option_c.c +++ b/cpio/test/test_option_c.c @@ -65,18 +65,14 @@ DEFINE_TEST(test_option_c) { FILE *filelist; int r; - int uid = -1; - int dev, ino, gid; + int uid = 1000; + int dev, ino, gid = 1000; time_t t, now; char *p, *e; size_t s; assertUmask(0); -#if !defined(_WIN32) - uid = getuid(); -#endif - /* * Create an assortment of files. * TODO: Extend this to cover more filetypes. -- 2.47.2