]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Only test lrzip write filtering if the lrzip executable is available.
authorTim Kientzle <kientzle@acm.org>
Sun, 10 Jun 2012 01:01:29 +0000 (18:01 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 10 Jun 2012 01:01:29 +0000 (18:01 -0700)
libarchive/test/test_write_compress_lrzip.c

index 57fd3d4791fe3b332f4b5d6fac49f52647a79c91..dc6f617dbc5cee0c597102a1234567da1b5466ad 100644 (file)
@@ -40,6 +40,11 @@ DEFINE_TEST(test_write_compress_lrzip)
        size_t used1, used2;
        int i, r;
 
+       if (!canLrzip()) {
+               skipping("lrzip command-line program not found");
+               return;
+       }
+
        buffsize = 2000000;
        assert(NULL != (buff = (char *)malloc(buffsize)));