diff options
author | unknown <msvensson@pilot.blaudden> | 2007-02-19 18:25:42 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-02-19 18:25:42 +0100 |
commit | 8e74830003c0a2e4ef87371deb239a918875854c (patch) | |
tree | 40b6ae41f206f90136844634c34edb2409cbccd0 /mysql-test/t/mysqldump.test | |
parent | 082ad73439226510e8c6c252342958ab47c8e91c (diff) | |
download | mariadb-git-8e74830003c0a2e4ef87371deb239a918875854c.tar.gz |
Remove unportable constructs in mysqldump.test
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r-- | mysql-test/t/mysqldump.test | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test index ea85d7f4f55..24aefb25a2b 100644 --- a/mysql-test/t/mysqldump.test +++ b/mysql-test/t/mysqldump.test @@ -126,13 +126,13 @@ drop table t1; create table t1(a int); insert into t1 values (1),(2),(3); --exec $MYSQL_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test ---exec cat $MYSQLTEST_VARDIR/tmp/t1.sql ---exec cat $MYSQLTEST_VARDIR/tmp/t1.txt ---exec rm $MYSQLTEST_VARDIR/tmp/t1.sql ---exec rm $MYSQLTEST_VARDIR/tmp/t1.txt +--cat_file $MYSQLTEST_VARDIR/tmp/t1.sql +--cat_file $MYSQLTEST_VARDIR/tmp/t1.txt +--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql +--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt --exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test ---exec rm $MYSQLTEST_VARDIR/tmp/t1.sql ---exec rm $MYSQLTEST_VARDIR/tmp/t1.txt +--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql +--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt drop table t1; --echo # @@ -710,7 +710,7 @@ drop table t1, t2, t3; create table t1 (a int); --error 2 ---exec $MYSQL_DUMP --skip-comments --force test t1 --where='xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 2>&1 +--exec $MYSQL_DUMP --skip-comments --force test t1 --where="xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 2>&1 drop table t1; --echo # @@ -912,11 +912,13 @@ DROP TABLE t1, t2; --echo # Bugs #9136, #12917: problems with --defaults-extra-file option --echo # ---system echo '[mysqltest1]' > $MYSQLTEST_VARDIR/tmp/tmp.cnf ---system echo 'port=1234' >> $MYSQLTEST_VARDIR/tmp/tmp.cnf +--write_file $MYSQLTEST_VARDIR/tmp/tmp.cnf +[mysqltest1] +port=1234 +EOF --exec $MYSQL_MY_PRINT_DEFAULTS -c $MYSQLTEST_VARDIR/tmp/tmp.cnf mysqltest1 --exec $MYSQL_MY_PRINT_DEFAULTS -e $MYSQLTEST_VARDIR/tmp/tmp.cnf mysqltest1 mysqltest1 ---system rm $MYSQLTEST_VARDIR/tmp/tmp.cnf +--remov_file $MYSQLTEST_VARDIR/tmp/tmp.cnf --echo # --echo # Test of fix to BUG 12597 @@ -1190,9 +1192,9 @@ create view v1 as select qty, price, qty*price as value from t; create view v2 as select qty from v1; --echo mysqldump { --exec $MYSQL_DUMP --compact -F --tab $MYSQLTEST_VARDIR/tmp test ---exec cat $MYSQLTEST_VARDIR/tmp/v1.sql +--cat_file $MYSQLTEST_VARDIR/tmp/v1.sql --echo } mysqldump { ---exec cat $MYSQLTEST_VARDIR/tmp/v2.sql +--cat_file $MYSQLTEST_VARDIR/tmp/v2.sql --echo } mysqldump drop view v1; drop view v2; |