aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-23 08:38:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-23 08:38:43 +0000
commitdaced8041d5564de280591822af9c1173f659c94 (patch)
tree85157745c012d22e9dd4292d0771d3ecbaf66341
parentb053ae6a65d2abf236c61d1ce831ff717f7c6602 (diff)
No longer uses the valgrind option '--logfile-fd', we use the --logfile
option instead (even though it appends the pid to the file name, making it harder to figure out its name to parse it after a test has run). Also made sure we only use valgrind for the actual test command command lines, not when for example running curl to detect if there are any already running servers are present etc.
-rwxr-xr-xtests/runtests.pl5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 8de3c0690..2d9a97ed9 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -1024,7 +1024,7 @@ sub singletest {
}
if($valgrind) {
- $CMDLINE = "exec 3>log/valgrind$testnum && $CMDLINE";
+ $CMDLINE = "valgrind --leak-check=yes --logfile=log/valgrind$testnum -q $CMDLINE";
}
$CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR";
@@ -1476,9 +1476,6 @@ if($valgrind) {
#print "Valgrind failure, disable it\n";
undef $valgrind;
}
- else {
- $CURL="valgrind --leak-check=yes --logfile-fd=3 -q $CURL";
- }
}
#######################################################################