chomp $has_shared;
$has_shared = $has_shared eq "yes";
- if(!$feature{"TrackMemory"} && $torture) {
- die "can't run torture tests since curl was built without ".
- "TrackMemory feature (--enable-curldebug)";
+
+ if($torture) {
+ if(!$feature{"TrackMemory"}) {
+ die "can't run torture tests since curl was built without ".
+ "TrackMemory feature (--enable-curldebug)";
+ }
+ if ($feature{"threaded-resolver"} && !$valgrind) {
+ die "can't run torture tests since curl was built with the ".
+ "threaded resolver, and we aren't running with valgrind";
+ }
}
my $hostname=join(' ', runclientoutput("hostname"));
# Only show if not the default for now
logmsg "* Jobs: $jobs\n";
}
+ # Disable memory tracking when using threaded resolver
if($feature{"TrackMemory"} && $feature{"threaded-resolver"}) {
logmsg("*\n",
"*** DISABLES TrackMemory (memory tracking) when using threaded resolver\n",
"*\n");
+ $feature{"TrackMemory"} = 0;
}
logmsg sprintf("* Env: %s%s%s%s%s", $valgrind?"Valgrind ":"",
$nghttpx_h3);
logmsg sprintf("%s\n", $libtool?"Libtool ":"");
logmsg ("* Seed: $randseed\n");
-
- # Disable memory tracking when using threaded resolver
- $feature{"TrackMemory"} = $feature{"TrackMemory"} && !$feature{"threaded-resolver"};
-
}
#######################################################################