From 3974c02bb1bc13c252208e31746821853eb235aa Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Aug 2003 22:38:03 +0000 Subject: supprt for the new memlimit stuff --- tests/memanalyze.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index c354a5687..dff25a8b2 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -45,7 +45,15 @@ while() { 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; -- cgit v1.2.3