summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/cpio/test/test_format_newc.c
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-09-22 09:51:28 +0000
committerjoerg <joerg@pkgsrc.org>2019-09-22 09:51:28 +0000
commit85efd7f8759590df15b06d680dc2c141a499d7d3 (patch)
tree89973fc4fc77a5c0ac5daa4ea8e0e1afbf23fbf5 /archivers/libarchive/files/cpio/test/test_format_newc.c
parent3d58b3c8e51f686500fbe08fc5fea947dfa036b4 (diff)
downloadpkgsrc-85efd7f8759590df15b06d680dc2c141a499d7d3.tar.gz
Import libarchive 3.4.0KIENTZLE
Diffstat (limited to 'archivers/libarchive/files/cpio/test/test_format_newc.c')
-rw-r--r--archivers/libarchive/files/cpio/test/test_format_newc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/archivers/libarchive/files/cpio/test/test_format_newc.c b/archivers/libarchive/files/cpio/test/test_format_newc.c
index 258640443fe..6c981f6ac13 100644
--- a/archivers/libarchive/files/cpio/test/test_format_newc.c
+++ b/archivers/libarchive/files/cpio/test/test_format_newc.c
@@ -114,7 +114,7 @@ DEFINE_TEST(test_format_newc)
/* "symlink" */
if (canSymlink()) {
- assertMakeSymlink("symlink", "file1");
+ assertMakeSymlink("symlink", "file1", 0);
fprintf(list, "symlink\n");
}
@@ -233,7 +233,12 @@ DEFINE_TEST(test_format_newc)
assert(is_hex(e, 110));
assertEqualMem(e + 0, "070701", 6); /* Magic */
assert(is_hex(e + 6, 8)); /* ino */
+#if defined(_WIN32) && !defined(CYGWIN)
+ /* Mode: Group members bits and others bits do not work. */
+ assertEqualInt(0xa180, from_hex(e + 14, 8) & 0xffc0);
+#else
assertEqualInt(0xa1ff, from_hex(e + 14, 8)); /* Mode */
+#endif
assertEqualInt(from_hex(e + 22, 8), uid); /* uid */
assertEqualInt(gid, from_hex(e + 30, 8)); /* gid */
assertEqualMem(e + 38, "00000001", 8); /* nlink */