diff options
author | Tim Kientzle <kientzle@gmail.com> | 2010-02-07 17:25:59 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2010-02-07 17:25:59 -0500 |
commit | afea1b2b26be07174bdf1fa010f1c4fdf0acb43f (patch) | |
tree | afe04ec9f5774bf7c804bf087e920839b8f25d3c /libarchive/test/test_write_format_tar_empty.c | |
parent | 062b3dc123ca8ff8d9042164375c3ffb89b99761 (diff) | |
download | libarchive-afea1b2b26be07174bdf1fa010f1c4fdf0acb43f.tar.gz |
Rip out the remaining support for old libarchive 1.x APIs.
SVN-Revision: 1886
Diffstat (limited to 'libarchive/test/test_write_format_tar_empty.c')
-rw-r--r-- | libarchive/test/test_write_format_tar_empty.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libarchive/test/test_write_format_tar_empty.c b/libarchive/test/test_write_format_tar_empty.c index 6b40f076..1f8d431d 100644 --- a/libarchive/test/test_write_format_tar_empty.c +++ b/libarchive/test/test_write_format_tar_empty.c @@ -46,18 +46,9 @@ DEFINE_TEST(test_write_format_tar_empty) /* 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 -#if ARCHIVE_VERSION_NUMBER < 1009000 - /* Earlier versions wrote 0-length files for empty tar archives. */ - skipping("empty tar archive size"); -#else assert(used == 1024); -#endif for (i = 0; i < used; i++) { failure("Empty tar archive should be all nulls."); assert(buff[i] == 0); @@ -73,18 +64,9 @@ DEFINE_TEST(test_write_format_tar_empty) /* 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 -#if ARCHIVE_VERSION_NUMBER < 1009000 - /* Earlier versions wrote 0-length files for empty tar archives. */ - skipping("empty tar archive size"); -#else assertEqualInt((int)used, 1024); -#endif for (i = 0; i < used; i++) { failure("Empty tar archive should be all nulls."); assert(buff[i] == 0); |