Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libarchive/dist/tar/test Extract a second time ...



details:   https://anonhg.NetBSD.org/src/rev/169edd1dc656
branches:  trunk
changeset: 848090:169edd1dc656
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 17 16:50:03 2020 +0000

description:
Extract a second time to exercise extracting hardlinks over existing hardlinks.

diffstat:

 external/bsd/libarchive/dist/tar/test/test_copy.c |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r bcaaddfce21f -r 169edd1dc656 external/bsd/libarchive/dist/tar/test/test_copy.c
--- a/external/bsd/libarchive/dist/tar/test/test_copy.c Fri Jan 17 16:26:12 2020 +0000
+++ b/external/bsd/libarchive/dist/tar/test/test_copy.c Fri Jan 17 16:50:03 2020 +0000
@@ -316,6 +316,19 @@
        assertEmptyFile("unpack.out");
 
        verify_tree(LIMIT_NONE);
+
+       /*
+        * Unpack a second time to make sure that things are still ok
+        */
+       r = systemf("%s xf archive >unpack.out 2>unpack.err", testprog);
+       failure("Error invoking %s xf archive", testprog);
+       assertEqualInt(r, 0);
+
+       /* Verify that nothing went to stdout or stderr. */
+       assertEmptyFile("unpack.err");
+       assertEmptyFile("unpack.out");
+
+       verify_tree(LIMIT_NONE);
        assertEqualInt(0, chdir(".."));
 }
 



Home | Main Index | Thread Index | Old Index