Module Name: src Committed By: christos Date: Fri Jan 17 16:50:03 UTC 2020
Modified Files: src/external/bsd/libarchive/dist/tar/test: test_copy.c Log Message: Extract a second time to exercise extracting hardlinks over existing hardlinks. To generate a diff of this commit: cvs rdiff -u -r1.1.1.4 -r1.2 \ src/external/bsd/libarchive/dist/tar/test/test_copy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/libarchive/dist/tar/test/test_copy.c diff -u src/external/bsd/libarchive/dist/tar/test/test_copy.c:1.1.1.4 src/external/bsd/libarchive/dist/tar/test/test_copy.c:1.2 --- src/external/bsd/libarchive/dist/tar/test/test_copy.c:1.1.1.4 Wed Jul 24 09:50:41 2019 +++ src/external/bsd/libarchive/dist/tar/test/test_copy.c Fri Jan 17 11:50:03 2020 @@ -316,6 +316,19 @@ copy_basic(void) 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("..")); }