diff options
author | mm <mm@FreeBSD.org> | 2012-02-25 10:58:02 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-02-25 10:58:02 +0000 |
commit | 6132589d7bb05bbf0c9033cc9f5cf79bafdc0b0f (patch) | |
tree | 117e869a99c6fa7f789c6d9a87cf7eac26ae69e3 /contrib/libarchive/libarchive/test/test_tar_filenames.c | |
parent | 87f7f0cfe8d3d17bc154ca2c0dcd51bca1444006 (diff) | |
parent | 2f6e434fe4c652da1969314fa57ae21936cec85d (diff) | |
download | FreeBSD-src-6132589d7bb05bbf0c9033cc9f5cf79bafdc0b0f.zip FreeBSD-src-6132589d7bb05bbf0c9033cc9f5cf79bafdc0b0f.tar.gz |
Update libarchive to 3.0.3
Some of new features:
- New readers: RAR, LHA/LZH, CAB reader, 7-Zip
- New writers: ISO9660, XAR
- Improvements to many formats, especially including ISO9660 and Zip
- Stackable write filters to write, e.g., tar.gz.uu in a single pass
- Exploit seekable input; new "seekable" Zip reader can exploit the Zip
Central Directory when it's available; the old "streamable" Zip reader
is still fully supported for cases where seeking is not possible.
Full release notes available at:
https://github.com/libarchive/libarchive/wiki/ReleaseNotes
Diffstat (limited to 'contrib/libarchive/libarchive/test/test_tar_filenames.c')
-rw-r--r-- | contrib/libarchive/libarchive/test/test_tar_filenames.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/contrib/libarchive/libarchive/test/test_tar_filenames.c b/contrib/libarchive/libarchive/test/test_tar_filenames.c index ac6df3e..5c5287a 100644 --- a/contrib/libarchive/libarchive/test/test_tar_filenames.c +++ b/contrib/libarchive/libarchive/test/test_tar_filenames.c @@ -100,28 +100,20 @@ test_filename(const char *prefix, int dlen, int flen) archive_entry_free(ae); /* Close out the archive. */ - assertA(0 == archive_write_close(a)); -#if ARCHIVE_VERSION_NUMBER < 2000000 - archive_write_finish(a); -#else - assertA(0 == archive_write_finish(a)); -#endif + assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a)); + assertEqualInt(ARCHIVE_OK, archive_write_free(a)); /* * Now, read the data back. */ assert((a = archive_read_new()) != NULL); assertA(0 == archive_read_support_format_all(a)); - assertA(0 == archive_read_support_compression_all(a)); + assertA(0 == archive_read_support_filter_all(a)); assertA(0 == archive_read_open_memory(a, buff, used)); /* Read the file and check the filename. */ assertA(0 == archive_read_next_header(a, &ae)); -#if ARCHIVE_VERSION_NUMBER < 1009000 - skipping("Leading '/' preserved on long filenames"); -#else assertEqualString(filename, archive_entry_pathname(ae)); -#endif assertEqualInt((S_IFREG | 0755), archive_entry_mode(ae)); /* @@ -133,29 +125,17 @@ test_filename(const char *prefix, int dlen, int flen) * here. */ assertA(0 == archive_read_next_header(a, &ae)); -#if ARCHIVE_VERSION_NUMBER < 1009000 - skipping("Trailing '/' preserved on dirnames"); -#else assertEqualString(dirname, archive_entry_pathname(ae)); -#endif assert((S_IFDIR | 0755) == archive_entry_mode(ae)); assertA(0 == archive_read_next_header(a, &ae)); -#if ARCHIVE_VERSION_NUMBER < 1009000 - skipping("Trailing '/' added to dir names"); -#else assertEqualString(dirname, archive_entry_pathname(ae)); -#endif assert((S_IFDIR | 0755) == archive_entry_mode(ae)); /* Verify the end of the archive. */ assert(1 == archive_read_next_header(a, &ae)); - assert(0 == archive_read_close(a)); -#if ARCHIVE_VERSION_NUMBER < 2000000 - archive_read_finish(a); -#else - assert(0 == archive_read_finish(a)); -#endif + assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); + assertEqualInt(ARCHIVE_OK, archive_read_free(a)); } DEFINE_TEST(test_tar_filenames) |