summaryrefslogtreecommitdiff
path: root/libarchive/test/test_write_format_tar_empty.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-02-07 17:25:59 -0500
committerTim Kientzle <kientzle@gmail.com>2010-02-07 17:25:59 -0500
commitafea1b2b26be07174bdf1fa010f1c4fdf0acb43f (patch)
treeafe04ec9f5774bf7c804bf087e920839b8f25d3c /libarchive/test/test_write_format_tar_empty.c
parent062b3dc123ca8ff8d9042164375c3ffb89b99761 (diff)
downloadlibarchive-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.c18
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);