]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid test_read_format_cab failure if no zlib.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 5 Oct 2012 02:46:23 +0000 (11:46 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 5 Oct 2012 02:46:23 +0000 (11:46 +0900)
libarchive/test/test_read_format_cab.c

index 004d6e8a93e7ef7fbafa6abc0650f5b3e0a98738..5e5cdcb8f7a41c6ec21e0bf9af64d6267576f1ea 100644 (file)
@@ -280,6 +280,11 @@ verify2(const char *refname, enum comp_type comp)
        char buff[128];
        char zero[128];
 
+       if (comp == MSZIP && !libz_enabled) {
+               skipping("Skipping CAB format(MSZIP) check for %s",
+                 refname);
+               return;
+       }
        memset(zero, 0, sizeof(zero));
        extract_reference_file(refname);
        assert((a = archive_read_new()) != NULL);