aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-28 12:36:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-28 12:36:25 +0000
commitf1103b95cf1f4fed432acf71f03bc807511e25d3 (patch)
tree34cf488420b15cee844e4fd298dc365bb1e839eb /tests
parentaa5ff53bcfcc09ff6918135d78b6e350e1873db3 (diff)
set CURL_MEMDEBUG to enable memory debugging in case curl is compiled
with it
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 2b9dd8e29..f1da6f225 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -74,6 +74,9 @@ my $pwd; # current working directory
chomp($pwd = `pwd`);
+# enable memory debugging if curl is compiled with it
+$ENV{'CURL_MEMDEBUG'} = 1;
+
#######################################################################
# Return the pid of the server as found in the given pid file
#
@@ -171,7 +174,7 @@ sub runhttpserver {
}
}
- if($pid) {
+ if($pid > 0) {
my $res = kill (9, $pid); # die!
if(!$res) {
print "Failed to kill our HTTP test server, do it manually and",