If the variable name has no assignment, no `=`, then that variable is just
deleted.
-### `<command [option="no-q/no-output/no-include/force-output/binary-trace"] [timeout="secs"][delay="secs"][type="perl/shell"]>`
+### `<command [option="no-q/no-output/no-include/no-memdebug/force-output/binary-trace"] [timeout="secs"][delay="secs"][type="perl/shell"]>`
Command line to run.
If the command spans multiple lines, they are concatenated with a space added
Set `option="no-include"` to prevent the test script to slap on the
`--include` argument.
+Set `option="no-memdebug"` to make the test run without the memdebug tracking
+system. For tests that are incompatible - multi-threaded for example.
+
Set `option="no-q"` avoid using `-q` as the first argument in the curl command
line.
if(!curl_dbg_logfile) {
if(logname && *logname)
curl_dbg_logfile = CURLX_FOPEN_LOW(logname, FOPEN_WRITETEXT);
- else
- curl_dbg_logfile = stderr;
#ifdef MEMDEBUG_LOG_SYNC
/* Flush the log file after every line so the log is not lost in a crash */
if(curl_dbg_logfile)
lib%TESTNUMBER
</tool>
# provide URL and ca-cert
-<command>
+<command option="no-memdebug">
https://localhost:%HTTPSPORT/%TESTNUMBER %CERTDIR/certs/test-ca.crt
</command>
</client>
$tool = $tool_name . exe_ext('TOOL');
}
+ my $oldmemdebug;
my $disablevalgrind;
my $CMDLINE="";
my $cmdargs;
# timestamp starting of test command
$$testtimings{"timetoolini"} = Time::HiRes::time();
+ if($cmdhash{'option'} && ($cmdhash{'option'} =~ /no-memdebug/)) {
+ $oldmemdebug = $ENV{'CURL_MEMDEBUG'};
+ delete $ENV{'CURL_MEMDEBUG'};
+ }
+
# run the command line we built
if($torture) {
$cmdres = torture($CMDLINE,
($cmdres, $dumped_core) = normalize_cmdres(runclient("$CMDLINE"));
}
+ # restore contents
+ if($oldmemdebug) {
+ $ENV{'CURL_MEMDEBUG'} = $oldmemdebug;
+ }
+
# timestamp finishing of test command
$$testtimings{"timetoolend"} = Time::HiRes::time();
if(! -f "$logdir/$MEMDUMP") {
my %cmdhash = getpartattr("client", "command");
my $cmdtype = $cmdhash{'type'} || "default";
- logmsg "\n** ALERT! memory tracking with no output file?\n"
- if($cmdtype ne "perl");
+ if($cmdhash{'option'} !~ /no-memdebug/) {
+ logmsg "\n** ALERT! memory tracking with no output file?\n"
+ if($cmdtype ne "perl");
+ }
$ok .= "-"; # problem with memory checking
}
else {