From: Bart Van Assche Date: Thu, 23 Jul 2015 02:46:44 +0000 (+0000) Subject: tests/vg_regtest: Always evaluate prerequisite expressions with sh X-Git-Tag: svn/VALGRIND_3_11_0~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ce23dde2a396d61820b90741c733e8b77d17138;p=thirdparty%2Fvalgrind.git tests/vg_regtest: Always evaluate prerequisite expressions with sh This avoids that expressions like ! fail with a mysterious error message. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15438 --- diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index c8e1d2b71e..26d06c72d8 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -443,7 +443,7 @@ sub do_one_test($$) read_vgtest_file($vgtest); if (defined $prereq) { - my $prereq_res = system("$prereq"); + my $prereq_res = system("/bin/sh", "-c", $prereq); if (0 == $prereq_res) { # Do nothing (ie. continue with the test) } elsif (256 == $prereq_res) {