diff options
Diffstat (limited to 'libarchive/test/test_read_format_cpio_svr4c_Z.c')
-rw-r--r-- | libarchive/test/test_read_format_cpio_svr4c_Z.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libarchive/test/test_read_format_cpio_svr4c_Z.c b/libarchive/test/test_read_format_cpio_svr4c_Z.c index d3f086b..ca3d5ce 100644 --- a/libarchive/test/test_read_format_cpio_svr4c_Z.c +++ b/libarchive/test/test_read_format_cpio_svr4c_Z.c @@ -40,7 +40,7 @@ DEFINE_TEST(test_read_format_cpio_svr4c_Z) /* printf("Archive address: start=%X, end=%X\n", archive, archive+sizeof(archive)); */ assert((a = archive_read_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, - archive_read_support_compression_all(a)); + archive_read_support_filter_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a)); assertEqualIntA(a, ARCHIVE_OK, @@ -52,11 +52,7 @@ DEFINE_TEST(test_read_format_cpio_svr4c_Z) failure("archive_format_name(a)=\"%s\"", archive_format_name(a)); assertEqualInt(archive_format(a), ARCHIVE_FORMAT_CPIO_SVR4_CRC); assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); -#if ARCHIVE_VERSION_NUMBER < 2000000 - archive_read_finish(a); -#else - assertEqualInt(ARCHIVE_OK, archive_read_finish(a)); -#endif + assertEqualInt(ARCHIVE_OK, archive_read_free(a)); } |