diff options
Diffstat (limited to 'contrib/libarchive/cpio/test/test_option_y.c')
-rw-r--r-- | contrib/libarchive/cpio/test/test_option_y.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/libarchive/cpio/test/test_option_y.c b/contrib/libarchive/cpio/test/test_option_y.c index 8e81ee7..b509f18 100644 --- a/contrib/libarchive/cpio/test/test_option_y.c +++ b/contrib/libarchive/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"); |