mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:57:16 +03:00
supprt for the new memlimit stuff
This commit is contained in:
parent
09b5ddaea5
commit
3974c02bb1
1 changed files with 9 additions and 1 deletions
|
|
@ -45,7 +45,15 @@ while(<FILE>) {
|
|||
chomp $_;
|
||||
$line = $_;
|
||||
|
||||
if($line =~ /^MEM ([^ ]*):(\d*) (.*)/) {
|
||||
if($line =~ /^LIMIT ([^ ]*):(\d*) (.*)/) {
|
||||
# new memory limit test prefix
|
||||
my $i = $3;
|
||||
my ($source, $linenum) = ($1, $2);
|
||||
if($trace && ($i =~ /([^ ]*) reached memlimit/)) {
|
||||
print "LIMIT: $1 returned error at $source:$linenum\n";
|
||||
}
|
||||
}
|
||||
elsif($line =~ /^MEM ([^ ]*):(\d*) (.*)/) {
|
||||
# generic match for the filename+linenumber
|
||||
$source = $1;
|
||||
$linenum = $2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue