summaryrefslogtreecommitdiff
path: root/cpio/test/test_format_newc.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_format_newc.c')
-rw-r--r--cpio/test/test_format_newc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpio/test/test_format_newc.c b/cpio/test/test_format_newc.c
index 1c3ae565..18a6c7bc 100644
--- a/cpio/test/test_format_newc.c
+++ b/cpio/test/test_format_newc.c
@@ -210,7 +210,9 @@ DEFINE_TEST(test_format_newc)
#endif
assertEqualInt(from_hex(e + 22, 8), getuid()); /* uid */
assertEqualInt(gid, from_hex(e + 30, 8)); /* gid */
+#ifndef NLINKS_INACCURATE_FOR_DIRS
assertEqualMem(e + 38, "00000002", 8); /* nlink */
+#endif
t2 = from_hex(e + 46, 8); /* mtime */
failure("First entry created at t=0x%08x this entry created at t2=0x%08x", t, t2);
assert(t2 == t || t2 == t + 1); /* Almost same as first entry. */