1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix return code from check-warnings to indicate if test failed or not.

No more string matching
This commit is contained in:
msvensson@shellback.(none)
2008-04-09 14:38:42 +02:00
parent d348362d24
commit f4661f34a6
4 changed files with 18 additions and 16 deletions

View File

@ -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 )