diff options
author | msvensson@pilot.mysql.com <> | 2008-04-03 21:40:10 +0200 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2008-04-03 21:40:10 +0200 |
commit | 95d9608d3ef3e1e827f94f99d693b71ca705212f (patch) | |
tree | 76dd3a7c6efd70af4dfc8db28827b033dcd983df /mysql-test/t/symlink.test | |
parent | a011d27cf95ecf401385bdfff4950d1e28f6df84 (diff) | |
download | mariadb-git-95d9608d3ef3e1e827f94f99d693b71ca705212f.tar.gz |
Fix paths in test and result files
Diffstat (limited to 'mysql-test/t/symlink.test')
-rw-r--r-- | mysql-test/t/symlink.test | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/mysql-test/t/symlink.test b/mysql-test/t/symlink.test index 7de9f6c6de0..d6a95974764 100644 --- a/mysql-test/t/symlink.test +++ b/mysql-test/t/symlink.test @@ -177,14 +177,15 @@ drop table t1; # # Bug #29325: create table overwrites .MYD file of other table (datadir) # +let $MYSQLD_DATADIR= `select @@datadir`; SET SESSION keep_files_on_create = TRUE; ---write_file $MYSQLTEST_VARDIR/master-data/test/t1.MYD +--write_file $MYSQLD_DATADIR/test/t1.MYD EOF --disable_abort_on_error --error 1,1,ER_TABLE_EXISTS_ERROR CREATE TABLE t1 (a INT) ENGINE MYISAM; --error 0,1 ---remove_file $MYSQLTEST_VARDIR/master-data/test/t1.MYD; +--remove_file $MYSQLD_DATADIR/test/t1.MYD; --enable_abort_on_error SET SESSION keep_files_on_create = FALSE; CREATE TABLE t1 (a INT) ENGINE MYISAM; @@ -195,22 +196,27 @@ DROP TABLE t1; # # Bug#32167: another privilege bypass with DATA/INDEX DIRECTORY # ---replace_result $MYSQLTEST_VARDIR TEST_DIR +let $MYSQLD_DATADIR= `select @@datadir`; +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error 1210 eval CREATE TABLE t1(a INT) -INDEX DIRECTORY='$MYSQLTEST_VARDIR/master-data/mysql'; ---replace_result $MYSQLTEST_VARDIR TEST_DIR +INDEX DIRECTORY='$MYSQLD_DATADIR/mysql'; + +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error 1210 eval CREATE TABLE t1(a INT) -DATA DIRECTORY='$MYSQLTEST_VARDIR/master-data/test'; ---replace_result $MYSQLTEST_VARDIR TEST_DIR +DATA DIRECTORY='$MYSQLD_DATADIR/test'; + +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error 1210 eval CREATE TABLE t1(a INT) -DATA DIRECTORY='$MYSQLTEST_VARDIR/master-data/'; ---replace_result $MYSQLTEST_VARDIR TEST_DIR +DATA DIRECTORY='$MYSQLD_DATADIR/'; + +--replace_result $MYSQLD_DATADIR MYSQLD_DATADIR --error 1210 eval CREATE TABLE t1(a INT) -INDEX DIRECTORY='$MYSQLTEST_VARDIR/master-data'; +INDEX DIRECTORY='$MYSQLD_DATADIR'; + --replace_result $MYSQLTEST_VARDIR TEST_DIR --error 1 eval CREATE TABLE t1(a INT) @@ -218,6 +224,7 @@ INDEX DIRECTORY='$MYSQLTEST_VARDIR/master-data_var'; # BUG#25677 - With --skip-symbolic-links option on, DATA DIRECTORY clause is # silently ignored # + SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE'; --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR eval CREATE TABLE t1(a INT) DATA DIRECTORY='$MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='$MYSQLTEST_VARDIR/tmp'; |