]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a skip message in no zlib.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 16 Oct 2012 01:14:40 +0000 (10:14 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 16 Oct 2012 01:14:40 +0000 (10:14 +0900)
cpio/test/test_option_z.c

index 91d37ac1983a4c626e7af2ecc94af443824a0b9b..0b68a42babbf446c0a00be332471f7419a4dbf0c 100644 (file)
@@ -40,9 +40,8 @@ DEFINE_TEST(test_option_z)
        p = slurpfile(&s, "archive.err");
        p[s] = '\0';
        if (r != 0) {
-               if (strstr(p, "compression not available") != NULL) {
-                       skipping("This version of bsdcpio was compiled "
-                           "without gzip support");
+               if (!canGzip()) {
+                       skipping("gzip is not supported on this platform");
                        return;
                }
                failure("-z option is broken");