aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-22 10:33:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-22 10:33:55 +0000
commit4dc9179f4b53facb2724ff1386658b572048c05e (patch)
treec44bfe8baae602521b3b07d325fbbeff3d4c2c4f
parent26a5ec9aa0c9af7dc551a03dc3113d0f44fa55b3 (diff)
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
-rwxr-xr-xtests/runtests.pl7
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) {