diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index a2af5c944..8de3c0690 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1013,9 +1013,6 @@ sub singletest { $cmdargs .= " <$stdinfile"; } - if($valgrind) { - $cmdargs .= " 3>log/valgrind$testnum"; - } my $CMDLINE; if(!$tool) { @@ -1026,6 +1023,10 @@ sub singletest { $DBGCURL=$CMDLINE; } + if($valgrind) { + $CMDLINE = "exec 3>log/valgrind$testnum && $CMDLINE"; + } + $CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR"; if($verbose) { |