diff options
author | joerg <joerg@pkgsrc.org> | 2019-09-22 09:51:28 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2019-09-22 09:51:28 +0000 |
commit | 85efd7f8759590df15b06d680dc2c141a499d7d3 (patch) | |
tree | 89973fc4fc77a5c0ac5daa4ea8e0e1afbf23fbf5 /archivers/libarchive/files/tar/test/test_strip_components.c | |
parent | 3d58b3c8e51f686500fbe08fc5fea947dfa036b4 (diff) | |
download | pkgsrc-85efd7f8759590df15b06d680dc2c141a499d7d3.tar.gz |
Import libarchive 3.4.0KIENTZLE
Diffstat (limited to 'archivers/libarchive/files/tar/test/test_strip_components.c')
-rw-r--r-- | archivers/libarchive/files/tar/test/test_strip_components.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/archivers/libarchive/files/tar/test/test_strip_components.c b/archivers/libarchive/files/tar/test/test_strip_components.c index d195af1b352..090fb0dbf91 100644 --- a/archivers/libarchive/files/tar/test/test_strip_components.c +++ b/archivers/libarchive/files/tar/test/test_strip_components.c @@ -36,8 +36,8 @@ DEFINE_TEST(test_strip_components) assertMakeHardlink("l1", "d1/d2/f1"); assertMakeHardlink("d1/l2", "d1/d2/f1"); if (canSymlink()) { - assertMakeSymlink("s1", "d1/d2/f1"); - assertMakeSymlink("d1/s2", "d2/f1"); + assertMakeSymlink("s1", "d1/d2/f1", 0); + assertMakeSymlink("d1/s2", "d2/f1", 0); } assertChdir(".."); @@ -64,9 +64,10 @@ DEFINE_TEST(test_strip_components) failure("d0/d1/s2 is a symlink to something that won't be extracted"); /* If platform supports symlinks, target/s2 is a broken symlink. */ /* If platform does not support symlink, target/s2 doesn't exist. */ - assertFileNotExists("target/s2"); if (canSymlink()) - assertIsSymlink("target/s2", "d2/f1"); + assertIsSymlink("target/s2", "d2/f1", 0); + else + assertFileNotExists("target/s2"); failure("d0/d1/d2 should be extracted"); assertIsDir("target/d2", -1); @@ -122,7 +123,7 @@ DEFINE_TEST(test_strip_components) /* If platform supports symlinks, target/s2 is included. */ if (canSymlink()) { failure("d0/d1/s2 is a symlink to something included in archive"); - assertIsSymlink("target2/s2", "d2/f1"); + assertIsSymlink("target2/s2", "d2/f1", 0); } failure("d0/d1/d2 should be archived"); assertIsDir("target2/d2", -1); |