fix tests to cleanup after themselves

This commit is contained in:
Sergei Golubchik 2014-02-06 16:27:55 +01:00
parent 3403f06d26
commit b7b991add0
10 changed files with 16 additions and 0 deletions

View file

@ -608,6 +608,7 @@ use test;
--echo
--echo -------- switch to master -------
connection master;
DROP TEMPORARY TABLE mysqltest1.t22;
DROP DATABASE mysqltest1;
# mysqltest2 was alreday DROPPED some tests before.
DROP DATABASE mysqltest3;

View file

@ -84,4 +84,5 @@ SELECT 1;
# Con1
UNLOCK TABLES;
# Default
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1, t2;

View file

@ -115,3 +115,4 @@ master-bin.000006 #
DROP TABLE t1, t2;
SET GLOBAL max_binlog_size= @old_max_binlog_size;
SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
SET debug_sync = 'reset';

View file

@ -143,3 +143,4 @@ INSERT INTO t1 VALUES (31, REPEAT("x", 4100));
DROP TABLE t1, t2;
SET GLOBAL max_binlog_size= @old_max_binlog_size;
SET GLOBAL innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
SET debug_sync = 'reset';

View file

@ -1617,6 +1617,7 @@ user
use test;
-------- switch to master -------
DROP TEMPORARY TABLE mysqltest1.t22;
DROP DATABASE mysqltest1;
DROP DATABASE mysqltest3;
include/rpl_end.inc

View file

@ -66,5 +66,7 @@ a
9
DROP TABLE t1;
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
include/rpl_end.inc

View file

@ -116,7 +116,9 @@ SET GLOBAL slave_parallel_threads=10;
include/start_slave.inc
include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
SET debug_sync = 'reset';
include/start_slave.inc
DROP function foo;
DROP TABLE t3;
SET debug_sync = 'reset';
include/rpl_end.inc

View file

@ -130,7 +130,11 @@ SELECT * FROM t1 ORDER BY a;
--connection server_1
DROP TABLE t1;
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
--connection server_2
SET GLOBAL gtid_strict_mode= @old_gtid_strict_mode;
SET debug_sync = "reset";
--source include/rpl_end.inc

View file

@ -190,10 +190,12 @@ SET GLOBAL slave_parallel_threads=10;
--connection server_2
--source include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
SET debug_sync = 'reset';
--source include/start_slave.inc
--connection server_1
DROP function foo;
DROP TABLE t3;
SET debug_sync = 'reset';
--source include/rpl_end.inc

View file

@ -131,5 +131,6 @@ UNLOCK TABLES;
--echo # Default
connection default;
SET DEBUG_SYNC = 'RESET';
DROP TABLE t1, t2;