From 055c9ea1f5b280218329e3fe10c5538f5fd918c3 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Tue, 16 Oct 2012 10:14:40 +0900 Subject: [PATCH] Fix a skip message in no zlib. --- cpio/test/test_option_z.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.47.2