From 20a6f54651677eecd83fff6e7d78aa46311952b0 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 7 Jun 2007 23:18:19 +0200 Subject: 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 --- mysql-test/include/uses_vardir.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mysql-test/include') 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; } -- cgit v1.2.1