diff options
Diffstat (limited to 'lib/libarchive/test/test_read_format_tbz.c')
-rw-r--r-- | lib/libarchive/test/test_read_format_tbz.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libarchive/test/test_read_format_tbz.c b/lib/libarchive/test/test_read_format_tbz.c index 00d4094..be99b36 100644 --- a/lib/libarchive/test/test_read_format_tbz.c +++ b/lib/libarchive/test/test_read_format_tbz.c @@ -37,9 +37,15 @@ DEFINE_TEST(test_read_format_tbz) { struct archive_entry *ae; struct archive *a; + int r; assert((a = archive_read_new()) != NULL); - assertEqualIntA(a, ARCHIVE_OK, archive_read_support_compression_all(a)); + r = archive_read_support_compression_bzip2(a); + if (r != ARCHIVE_OK) { + skipping("Bzip2 support"); + archive_read_finish(a); + return; + } assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, archive, sizeof(archive))); |