Browse Source

Skip perfschema.misc if "var" is a symlink (due to Bug 51447).

pull/73/head
Alexander Nozdrin 16 years ago
parent
commit
f977e21d26
  1. 13
      mysql-test/include/not_var_link.inc
  2. 1
      mysql-test/suite/perfschema/t/misc.test

13
mysql-test/include/not_var_link.inc

@ -0,0 +1,13 @@
perl;
open (ISLINK, ">" . $ENV{'MYSQL_TMP_DIR'} . "/mtr_var_link");
my $mvr= -l $ENV{'MYSQLTEST_VARDIR'} ? 1 : 0;
print ISLINK "let \$mtr_var_link= $mvr;\n";
close ISLINK;
EOF
--source $MYSQL_TMP_DIR/mtr_var_link
--remove_file $MYSQL_TMP_DIR/mtr_var_link
if ($mtr_var_link) {
--skip Test does not work with var being softlink
}

1
mysql-test/suite/perfschema/t/misc.test

@ -18,6 +18,7 @@
--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/not_var_link.inc
#
# Bug#45496 Performance schema: assertion fails in

Loading…
Cancel
Save