mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed wrong free in sql_view.cc
mysql-test-run now fails in case of warnings
This commit is contained in:
@@ -157,6 +157,7 @@ sub mtr_report_stats ($) {
|
||||
my $tot_passed= 0;
|
||||
my $tot_failed= 0;
|
||||
my $tot_tests= 0;
|
||||
my $found_problems= 0; # Some warnings are errors...
|
||||
|
||||
foreach my $tinfo (@$tests)
|
||||
{
|
||||
@@ -214,8 +215,6 @@ sub mtr_report_stats ($) {
|
||||
}
|
||||
else
|
||||
{
|
||||
my $found_problems= 0; # Some warnings are errors...
|
||||
|
||||
# We report different types of problems in order
|
||||
foreach my $pattern ( "^Warning:", "^Error:", "^==.* at 0x" )
|
||||
{
|
||||
@@ -266,6 +265,9 @@ sub mtr_report_stats ($) {
|
||||
}
|
||||
}
|
||||
print "\n";
|
||||
}
|
||||
if ( $tot_failed != 0 || $found_problems)
|
||||
{
|
||||
mtr_error("there where failing test cases");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user