]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Only test lrzip extraction if the lrzip executable is available.
authorTim Kientzle <kientzle@acm.org>
Sun, 10 Jun 2012 00:58:25 +0000 (17:58 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 10 Jun 2012 00:58:25 +0000 (17:58 -0700)
libarchive/test/test_compat_lrzip.c

index 0f182dfaf34b5a0871ee08bb7f9b693de44a5c3a..76350a928ca2d39eb71f4eb4955d4788a3a451e9 100644 (file)
@@ -71,7 +71,11 @@ verify(const char *name)
 
 DEFINE_TEST(test_compat_lrzip)
 {
-       verify("test_compat_lrzip.tar.lrz");
+       if (canLrzip()) {
+               verify("test_compat_lrzip.tar.lrz");
+       } else {
+               skipping("lrzip command-line program not found");
+       }
 }