From 4dc9179f4b53facb2724ff1386658b572048c05e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Apr 2004 10:33:55 +0000 Subject: modified how valgrind is run to make sure that file handle 3 exists when we tell valgrind to use that to send the logfile to --- tests/runtests.pl | 7 ++++--- 1 file 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) { -- cgit v1.2.3