diff options
Diffstat (limited to 'libarchive/test/test_read_format_pax_bz2.c')
-rw-r--r-- | libarchive/test/test_read_format_pax_bz2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libarchive/test/test_read_format_pax_bz2.c b/libarchive/test/test_read_format_pax_bz2.c index af70b36..826f878 100644 --- a/libarchive/test/test_read_format_pax_bz2.c +++ b/libarchive/test/test_read_format_pax_bz2.c @@ -47,7 +47,7 @@ DEFINE_TEST(test_read_format_pax_bz2) int r; assert((a = archive_read_new()) != NULL); - r = archive_read_support_compression_bzip2(a); + r = archive_read_support_filter_bzip2(a); if (r != ARCHIVE_OK) { archive_read_close(a); skipping("Bzip2 unavailable"); @@ -57,10 +57,11 @@ DEFINE_TEST(test_read_format_pax_bz2) assertEqualIntA(a,ARCHIVE_OK, archive_read_open_memory(a, archive, sizeof(archive))); assertEqualIntA(a,ARCHIVE_OK, archive_read_next_header(a, &ae)); + assertEqualInt(1, archive_file_count(a)); assertEqualInt(archive_compression(a), ARCHIVE_COMPRESSION_BZIP2); assertEqualInt(archive_format(a), ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE); assertEqualIntA(a,ARCHIVE_OK, archive_read_close(a)); - assertEqualInt(ARCHIVE_OK, archive_read_finish(a)); + assertEqualInt(ARCHIVE_OK, archive_read_free(a)); } |