summaryrefslogtreecommitdiffstats
path: root/cpio/test/test_option_y.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_option_y.c')
-rw-r--r--cpio/test/test_option_y.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpio/test/test_option_y.c b/cpio/test/test_option_y.c
index 5873496..54f270b 100644
--- a/cpio/test/test_option_y.c
+++ b/cpio/test/test_option_y.c
@@ -40,9 +40,8 @@ DEFINE_TEST(test_option_y)
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 bzip2 support");
+ if (!canBzip2()) {
+ skipping("bzip2 is not supported on this platform");
return;
}
failure("-y option is broken");
OpenPOWER on IntegriCloud