]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
make prereq fail with 1 if host command not installed
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 29 Aug 2014 22:49:21 +0000 (22:49 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 29 Aug 2014 22:49:21 +0000 (22:49 +0000)
as prereq must return 0 or 1. Any other return value aborts the regtests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14391

none/tests/res_search.vgtest

index 2253830ae1c4cfafbf40179ae2b1d620f60cf5c5..745a5ff4cc8976c0b272f1cc90d44d86e51138ed 100644 (file)
@@ -1,4 +1,4 @@
-prereq: host www.yahoo.com > /dev/null
+prereq: which host >/dev/null 2>/dev/null && host www.yahoo.com > /dev/null
 prog: res_search
 args: www.yahoo.com
 vgopts: -q