]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue #800: skip 747 test when bzlib is not built
authorTim Kientzle <kientzle@acm.org>
Sun, 23 Oct 2016 21:36:33 +0000 (14:36 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 23 Oct 2016 21:36:33 +0000 (14:36 -0700)
libarchive/test/test_read_format_mtree_crash747.c

index c08284552131d0bb75a983f508237c09450c13cb..9500bba2cdb4967d642ce36ccf21361174af94a0 100644 (file)
@@ -33,6 +33,11 @@ DEFINE_TEST(test_read_format_mtree_crash747)
        const char *reffile = "test_read_format_mtree_crash747.mtree.bz2";
        struct archive *a;
 
+       if (archive_bzlib_version() == NULL) {
+               skipping("This test requires bzlib");
+               return;
+       }
+
        extract_reference_file(reffile);
 
        assert((a = archive_read_new()) != NULL);