]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
tests/vg_regtest: Always evaluate prerequisite expressions with sh
authorBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2015 02:46:44 +0000 (02:46 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2015 02:46:44 +0000 (02:46 +0000)
This avoids that expressions like ! <stmnt> fail with a mysterious
error message.

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

tests/vg_regtest.in

index c8e1d2b71e0bef0306fd81a67f2cbcd5eb6a9b45..26d06c72d85cbbad1d4a74b1ff8e1e6262d5cc1c 100755 (executable)
@@ -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) {