diff options
Diffstat (limited to 'mysql-test/t/symlink.test')
-rw-r--r-- | mysql-test/t/symlink.test | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mysql-test/t/symlink.test b/mysql-test/t/symlink.test index 5e2b8232844..586761921b8 100644 --- a/mysql-test/t/symlink.test +++ b/mysql-test/t/symlink.test @@ -1,5 +1,7 @@ -- require r/have_symlink.require +disable_query_log; show variables like "have_symlink"; +enable_query_log; # # First create little data to play with @@ -33,7 +35,10 @@ drop table t2; # We use t9 here to not crash with tables generated by the backup test # +disable_query_log; eval create table t9 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam data directory="$MYSQL_TEST_DIR/var/tmp" index directory="$MYSQL_TEST_DIR/var/run"; +enable_query_log; + insert into t9 select * from t1; check table t9; optimize table t9; @@ -53,7 +58,8 @@ drop table t1; # Note that we are using the above table t9 here! # ---error 1103 +disable_query_log; +--error 1103,1103 create table t1 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam data directory="tmp"; # Check that we cannot link over a table from another database. @@ -61,17 +67,18 @@ create table t1 (a int not null auto_increment, b char(16) not null, primary key drop database if exists test_mysqltest; create database test_mysqltest; ---error 1 +--error 1,1 create table test_mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam index directory="/this-dir-does-not-exist"; ---error 1103 +--error 1103,1103 create table test_mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam index directory="not-hard-path"; ---error 1 +--error 1,1 eval create table test_mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam index directory="$MYSQL_TEST_DIR/var/run"; ---error 1 +--error 1,1 eval create table test_mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) type=myisam data directory="$MYSQL_TEST_DIR/var/tmp"; +enable_query_log; # Check moving table t9 from default database to test_mysqltest; # In this case the symlinks should be removed. |