diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-03-16 17:19:45 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-03-16 17:19:45 +0300 |
commit | 8347e1ea20303bb4a919a3ed4b16aab3c8f44fb5 (patch) | |
tree | 6afb2aa33435439e73e995b74aef779e1ebc7ef2 /mysql-test/include/not_var_link.inc | |
parent | 03768a2fc5bb359ee49e4f0f0c6628386c06bd6e (diff) | |
download | mariadb-git-8347e1ea20303bb4a919a3ed4b16aab3c8f44fb5.tar.gz |
Skip perfschema.misc if "var" is a symlink (due to Bug 51447).
mysql-test/include/not_var_link.inc:
Committed on behalf of Bjorn.
Diffstat (limited to 'mysql-test/include/not_var_link.inc')
-rw-r--r-- | mysql-test/include/not_var_link.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/include/not_var_link.inc b/mysql-test/include/not_var_link.inc new file mode 100644 index 00000000000..96db4f1dfd5 --- /dev/null +++ b/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 +} |