diff options
author | unknown <msvensson@neptunus.(none)> | 2006-02-20 13:04:40 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-02-20 13:04:40 +0100 |
commit | 0934ad5d7fb0bcbde436c9a99cf5cd262153b8e7 (patch) | |
tree | d53a4ab6801681257319eee2d03f2b5975955ee1 /mysql-test/t/mysqldump.test | |
parent | 140c91643bd1fa950b4b67b42f4ce6fba4ce5cc3 (diff) | |
download | mariadb-git-0934ad5d7fb0bcbde436c9a99cf5cd262153b8e7.tar.gz |
Bug#17382 mysql-test-run mysqldump fails with mysqlimport
client/Makefile.am:
Use LDADD_R as common variable for programs to be linked with thread safe library.
client/mysqlimport.c:
Enable "--use-threads"
Formatting
mysql-test/r/mysqldump.result:
Update test result
mysql-test/t/disabled.def:
Enable mysqldump
mysql-test/t/mysqldump.test:
Enable test for mysqlimport with threads
Add test for failed mysqlimport
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r-- | mysql-test/t/mysqldump.test | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test index 90a6782200d..dc711975569 100644 --- a/mysql-test/t/mysqldump.test +++ b/mysql-test/t/mysqldump.test @@ -1049,7 +1049,6 @@ SET SQL_MODE = @old_sql_mode; DROP TRIGGER tr1; DROP TABLE t1; ---disable_parsing # # Added for use-thread option # @@ -1070,7 +1069,22 @@ select * from t2; --exec $MYSQL_IMPORT --silent --use-threads=5 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt select * from t1; select * from t2; +# Now we test with multiple threads, but less threads than files. +create table words(a varchar(255)); +create table words2(b varchar(255)); +--exec $MYSQL_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat +select * from t1; +select * from t2; +select * from words; +select * from words2; + +# Drop table "words" and run with threads, should fail +drop table words; +--replace_regex /.*mysqlimport/mysql-import/ +--error 1 +--exec $MYSQL_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat 2>&1 drop table t1; drop table t2; ---enable_parsing + +drop table words2; |