mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix return code from check-warnings to indicate if test failed or not.
No more string matching mysql-test/include/check-warnings.test: Check return value from check_warnings and call skip if ok mysql-test/include/mtr_check.sql: Improve readability mysql-test/include/mtr_warnings.sql: Add out parameter for result. Increase the max_allowed_packet variable so the load_file works even if the server is started with low such value
This commit is contained in:
@@ -2568,22 +2568,16 @@ sub run_check_warnings ($$) {
|
||||
if ( $res == 0 )
|
||||
{
|
||||
my $report= mtr_grab_file($errfile);
|
||||
if ($report ne "OK\nOK\n")
|
||||
{
|
||||
# Log to var/log/warnings file
|
||||
mtr_tofile("$opt_vardir/log/warnings",
|
||||
# Log to var/log/warnings file
|
||||
mtr_tofile("$opt_vardir/log/warnings",
|
||||
$tname."\n",
|
||||
$report);
|
||||
|
||||
$res= 1;
|
||||
$tinfo->{'warnings'}.= $report;
|
||||
|
||||
}
|
||||
$res= 1;
|
||||
$tinfo->{'warnings'}.= $report;
|
||||
}
|
||||
elsif ( $res == 62 )
|
||||
{
|
||||
# One of the features needed to run check_warnings.test was not
|
||||
# available, check skipped
|
||||
elsif ( $res == 62 ) {
|
||||
# Test case was ok and called "skip"
|
||||
$res= 0;
|
||||
}
|
||||
elsif ( $res )
|
||||
|
Reference in New Issue
Block a user