1
# Tests for PERFORMANCE_SCHEMA
2
# Check error handling for invalid server start options
4
--source include/not_embedded.inc
5
--source include/have_perfschema.inc
7
let $outfile= $MYSQLTEST_VARDIR/tmp/bad_option_4.txt;
11
--exec $MYSQLD_BOOTSTRAP_CMD --loose-console -a -h bad_option_h_param > $outfile 2>&1
16
my $fname= "$ENV{'MYSQLTEST_VARDIR'}/tmp/bad_option_4.txt";
17
open(FILE, "<", $fname) or die;
19
# those must be in the file for the test to pass
21
("Can't change dir to.*bad_option_h_param",
23
foreach my $one_line (@lines)
25
foreach my $one_pattern (@patterns)
27
# print pattern, not line, to get a stable output
28
print "Found: $one_pattern\n" if ($one_line =~ /$one_pattern/);
33
--remove_file $outfile