summaryrefslogtreecommitdiff
path: root/mysql-test/include/uses_vardir.inc
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.(none)>2007-06-07 14:33:13 +0200
committerunknown <msvensson@pilot.(none)>2007-06-07 14:33:13 +0200
commit84bc49889519b3802aa423ada051c1f12c2fe312 (patch)
tree348e80095eb8fd9c2c2a7da79fc1970055c45881 /mysql-test/include/uses_vardir.inc
parentc98d6e5b5ba8010cac6e9adb162ec88de2537163 (diff)
parent47559994b14d52e20c53b669875887363c33903d (diff)
downloadmariadb-git-84bc49889519b3802aa423ada051c1f12c2fe312.tar.gz
Merge pilot.(none):/data/msvensson/mysql/bug28718/my50-bug28718
into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
Diffstat (limited to 'mysql-test/include/uses_vardir.inc')
-rw-r--r--mysql-test/include/uses_vardir.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/include/uses_vardir.inc b/mysql-test/include/uses_vardir.inc
new file mode 100644
index 00000000000..a5095c3e139
--- /dev/null
+++ b/mysql-test/include/uses_vardir.inc
@@ -0,0 +1,15 @@
+#
+# Some tests uses LOAD DATA with a relative path
+# and need to see for example ../std_data
+#
+# Also if an absolute path was used, the server might be started
+# with --secure-file-priv and wouldn't be allowed to LOAD a file
+# outside of it's vardir anyway
+#
+
+let $datadir=
+ query_get_value("SHOW VARIABLES LIKE 'datadir'", Value, 1);
+if (`select LOCATE("$MYSQLTEST_VARDIR", "$datadir") != 1`)
+{
+ skip Need mysqld in MYSQLTEST_VARDIR;
+}