]> granicus.if.org Git - curl/commitdiff
set CURL_MEMDEBUG to enable memory debugging in case curl is compiled
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Feb 2002 12:36:25 +0000 (12:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Feb 2002 12:36:25 +0000 (12:36 +0000)
with it

tests/runtests.pl

index 2b9dd8e293c1a0d7c207e3b133e714932d36f4d9..f1da6f2251ae153fee0bc9943e176f8480e5623d 100755 (executable)
@@ -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",