Commit 2994f8b7 authored by Bjorn Munch's avatar Bjorn Munch

Bug #55503 MTR fails to filter LEAK SUMMARY from valgrind report of restarted servers

Was not covered by "skip" pattern
Replace with a more generic pattern for SUMMARY
parent 70dee54c
...@@ -3791,7 +3791,8 @@ sub extract_warning_lines ($$) { ...@@ -3791,7 +3791,8 @@ sub extract_warning_lines ($$) {
if ($opt_valgrind_mysqld) { if ($opt_valgrind_mysqld) {
# Skip valgrind summary from tests where server has been restarted # Skip valgrind summary from tests where server has been restarted
# Should this contain memory leaks, the final report will find it # Should this contain memory leaks, the final report will find it
$skip_valgrind= 1 if $line =~ /^==\d+== ERROR SUMMARY:/; # Use a generic pattern for summaries
$skip_valgrind= 1 if $line =~ /^==\d+== [A-Z ]+ SUMMARY:/;
$skip_valgrind= 0 unless $line =~ /^==\d+==/; $skip_valgrind= 0 unless $line =~ /^==\d+==/;
next if $skip_valgrind; next if $skip_valgrind;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment