From: Michihiro NAKAJIMA Date: Tue, 16 Oct 2012 01:14:40 +0000 (+0900) Subject: Fix a skip message in no zlib. X-Git-Tag: v3.1.0~40^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=055c9ea1f5b280218329e3fe10c5538f5fd918c3;p=thirdparty%2Flibarchive.git Fix a skip message in no zlib. --- diff --git a/cpio/test/test_option_z.c b/cpio/test/test_option_z.c index 91d37ac19..0b68a42ba 100644 --- a/cpio/test/test_option_z.c +++ b/cpio/test/test_option_z.c @@ -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");