variable to allow the test suite to better control where it ends up.
/* this sends all memory debug messages to a logfile named memdump */
env = curlx_getenv("CURL_MEMDEBUG");
if(env) {
+ /* use the value as file name */
+ curl_memdebug(env);
curl_free(env);
- curl_memdebug("memdump");
}
env = curlx_getenv("CURL_MEMLIMIT");
if(env) {
my $curl_debug=0;
# name of the file that the memory debugging creates:
-my $memdump="memdump";
+my $memdump="$LOGDIR/memdump";
# the path to the script that analyzes the memory debug output file:
my $memanalyze="./memanalyze.pl";
chomp($pwd = `pwd`);
# enable memory debugging if curl is compiled with it
-$ENV{'CURL_MEMDEBUG'} = 1;
+$ENV{'CURL_MEMDEBUG'} = $memdump;
$ENV{'HOME'}=$pwd;
##########################################################################