summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/include/not_var_link.inc13
-rw-r--r--mysql-test/suite/perfschema/t/misc.test1
2 files changed, 14 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
+}
diff --git a/mysql-test/suite/perfschema/t/misc.test b/mysql-test/suite/perfschema/t/misc.test
index 749eccca793..755648036ac 100644
--- a/mysql-test/suite/perfschema/t/misc.test
+++ b/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