summaryrefslogtreecommitdiff
path: root/tests/memanalyze.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 22:38:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 22:38:03 +0000
commit3974c02bb1bc13c252208e31746821853eb235aa (patch)
treee3c38ca8d5c13fa9e1256fc594061a8c4ee51b33 /tests/memanalyze.pl
parent09b5ddaea58b741c474390738c4afbdbe6f94286 (diff)
downloadcurl-3974c02bb1bc13c252208e31746821853eb235aa.tar.gz
supprt for the new memlimit stuff
Diffstat (limited to 'tests/memanalyze.pl')
-rwxr-xr-xtests/memanalyze.pl10
1 files changed, 9 insertions, 1 deletions
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(<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;