diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-07 14:33:45 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-07 14:33:45 +0200 |
commit | 3d19e596206fc583a8dea6c571dc0186cd342fc1 (patch) | |
tree | 6b009900bf5a3ef833aa6580d01cd746f71001ff /mysql-test | |
parent | fcc20365a73314d127fc23fb127f6ce414b840d0 (diff) | |
parent | 84bc49889519b3802aa423ada051c1f12c2fe312 (diff) | |
download | mariadb-git-3d19e596206fc583a8dea6c571dc0186cd342fc1.tar.gz |
Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
mysql-test/t/backup.test:
Auto merged
mysql-test/extra/binlog_tests/blackhole.test:
Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/extra/binlog_tests/blackhole.test | 6 | ||||
-rw-r--r-- | mysql-test/include/uses_vardir.inc | 15 | ||||
-rw-r--r-- | mysql-test/t/backup.test | 5 |
3 files changed, 25 insertions, 1 deletions
diff --git a/mysql-test/extra/binlog_tests/blackhole.test b/mysql-test/extra/binlog_tests/blackhole.test index 9f842a9a4eb..98e0a264ed6 100644 --- a/mysql-test/extra/binlog_tests/blackhole.test +++ b/mysql-test/extra/binlog_tests/blackhole.test @@ -5,6 +5,10 @@ -- source include/not_embedded.inc -- source include/have_blackhole.inc +# The server need to be started in $MYSQLTEST_VARDIR since it +# uses ../std_data_ln/ +-- source include/uses_vardir.inc + --disable_warnings drop table if exists t1,t2; --enable_warnings @@ -109,7 +113,7 @@ insert into t1 values(1); insert ignore into t1 values(1); replace into t1 values(100); create table t2 (a varchar(200)) engine=blackhole; -load data infile '../std_data_ln/words.dat' into table t2; +eval load data infile '../std_data_ln/words.dat' into table t2; alter table t1 add b int; alter table t1 drop b; create table t3 like t1; diff --git a/mysql-test/include/uses_vardir.inc b/mysql-test/include/uses_vardir.inc new file mode 100644 index 00000000000..a5095c3e139 --- /dev/null +++ b/mysql-test/include/uses_vardir.inc @@ -0,0 +1,15 @@ +# +# Some tests uses LOAD DATA with a relative path +# and need to see for example ../std_data +# +# Also if an absolute path was used, the server might be started +# with --secure-file-priv and wouldn't be allowed to LOAD a file +# outside of it's vardir anyway +# + +let $datadir= + query_get_value("SHOW VARIABLES LIKE 'datadir'", Value, 1); +if (`select LOCATE("$MYSQLTEST_VARDIR", "$datadir") != 1`) +{ + skip Need mysqld in MYSQLTEST_VARDIR; +} diff --git a/mysql-test/t/backup.test b/mysql-test/t/backup.test index d737e292bb1..0b4b9b84094 100644 --- a/mysql-test/t/backup.test +++ b/mysql-test/t/backup.test @@ -1,3 +1,8 @@ + +# The server need to be started in $MYSQLTEST_VARDIR since it +# uses ../std_data_ln/ +-- source include/uses_vardir.inc + # # This test is a bit tricky as we can't use backup table to overwrite an old # table |