1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Check that the default-storage-engine used by test is a supported engine

This commit is contained in:
Magnus Svensson
2008-07-24 22:20:35 +02:00
parent 818802a6ea
commit ee3b5acc62

View File

@@ -536,6 +536,26 @@ sub optimize_cases {
}
}
}
# =======================================================
# Check that engine selected by
# --default-storage-engine=<engine> is supported
# =======================================================
foreach my $opt ( @{$tinfo->{master_opt}} ) {
my $default_engine=
mtr_match_prefix($opt, "--default-storage-engine=");
if (defined $default_engine){
if ( ! exists $::mysqld_variables{$default_engine} )
{
$tinfo->{'skip'}= 1;
$tinfo->{'comment'}=
"'$default_engine' not supported";
}
}
}
}
}