diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-07 23:18:19 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-07 23:18:19 +0200 |
commit | 20a6f54651677eecd83fff6e7d78aa46311952b0 (patch) | |
tree | 090a53ffaea3686b60708578397b2f851ce86398 /mysql-test/include | |
parent | 14b95f511b23b884e95d14e00499fe9bc382884c (diff) | |
download | mariadb-git-20a6f54651677eecd83fff6e7d78aa46311952b0.tar.gz |
Bug#28718 Running backup testcase fails in mysql testsuite of MySQL-enterprise-5.0.40
- Fix test to work on OS where backslashes are forward
mysql-test/include/uses_vardir.inc:
Make the test work on windows too
Diffstat (limited to 'mysql-test/include')
-rw-r--r-- | mysql-test/include/uses_vardir.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mysql-test/include/uses_vardir.inc b/mysql-test/include/uses_vardir.inc index a5095c3e139..950de698a43 100644 --- a/mysql-test/include/uses_vardir.inc +++ b/mysql-test/include/uses_vardir.inc @@ -7,9 +7,8 @@ # outside of it's vardir anyway # -let $datadir= - query_get_value("SHOW VARIABLES LIKE 'datadir'", Value, 1); -if (`select LOCATE("$MYSQLTEST_VARDIR", "$datadir") != 1`) + +if (`select LOCATE('$MYSQLTEST_VARDIR', REPLACE(@@datadir, '\\\\', '/')) != 1`) { skip Need mysqld in MYSQLTEST_VARDIR; } |