summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test_read_format_cpio_bin_Z.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/test/test_read_format_cpio_bin_Z.c')
-rw-r--r--lib/libarchive/test/test_read_format_cpio_bin_Z.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_read_format_cpio_bin_Z.c b/lib/libarchive/test/test_read_format_cpio_bin_Z.c
index a22c259..9cfadd6 100644
--- a/lib/libarchive/test/test_read_format_cpio_bin_Z.c
+++ b/lib/libarchive/test/test_read_format_cpio_bin_Z.c
@@ -43,10 +43,10 @@ DEFINE_TEST(test_read_format_cpio_bin_Z)
assertA(archive_compression(a) == ARCHIVE_COMPRESSION_COMPRESS);
assertA(archive_format(a) == ARCHIVE_FORMAT_CPIO_BIN_LE);
assert(0 == archive_read_close(a));
-#if ARCHIVE_API_VERSION > 1
- assert(0 == archive_read_finish(a));
-#else
+#if ARCHIVE_VERSION_NUMBER < 2000000
archive_read_finish(a);
+#else
+ assert(0 == archive_read_finish(a));
#endif
}
OpenPOWER on IntegriCloud