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
This commit is contained in:
unknown 2007-06-07 23:18:19 +02:00
parent 14b95f511b
commit 20a6f54651

View File

@ -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;
}