summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2007-05-24 13:53:49 +0200
committerunknown <thek@adventure.(none)>2007-05-24 13:53:49 +0200
commitb05442663e3ac6dde7980b471ddd31733114b441 (patch)
tree8d89c3433528daa3377ef5671d01d69ad43cbb31 /mysql-test/lib
parent78313724322ba7bd4a1dacab2ef52f54ce03a749 (diff)
parent5c398486b2f22c44c2658d4b075aba0cc1e47dbb (diff)
downloadmariadb-git-b05442663e3ac6dde7980b471ddd31733114b441.tar.gz
Merge adventure.(none):/home/thek/Development/cpp/bug28644/my41-bug28644
into adventure.(none):/home/thek/Development/cpp/bug28644/my50-bug28644 mysql-test/lib/mtr_report.pl: Auto merged sql/sql_test.cc: Auto merged
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/mtr_report.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl
index d08208d37a6..6ae19a72a2a 100644
--- a/mysql-test/lib/mtr_report.pl
+++ b/mysql-test/lib/mtr_report.pl
@@ -277,8 +277,19 @@ sub mtr_report_stats ($) {
mtr_warning("can't read $errlog");
next;
}
+ my $leak_reports_expected= undef;
while ( <ERR> )
{
+ # There is a test case that purposely provokes a
+ # SAFEMALLOC leak report, even though there is no actual
+ # leak. We need to detect this, and ignore the warning in
+ # that case.
+ if (/Begin safemalloc memory dump:/) {
+ $leak_reports_expected= 1;
+ } elsif (/End safemalloc memory dump./) {
+ $leak_reports_expected= undef;
+ }
+
# Skip some non fatal warnings from the log files
if ( /Warning:\s+Table:.* on (delete|rename)/ or
/Warning:\s+Setting lower_case_table_names=2/ or
@@ -289,6 +300,9 @@ sub mtr_report_stats ($) {
}
if ( /$pattern/ )
{
+ if ($leak_reports_expected) {
+ next;
+ }
$found_problems= 1;
print WARN $_;
}