Browse Source
BUG#38350: Many tests don't clean up after themselves on exit.
BUG#38350: Many tests don't clean up after themselves on exit.
Problem: Many test cases don't clean up after themselves (fail to drop tables or fail to reset variables). This implies that: (1) check-testcase in the new mtr that currently lives in 5.1-rpl failed. (2) it may cause unexpected results in subsequent tests. Fix: make all tests clean up. Also: cleaned away unnecessary output in rpl_packet.result Also: fixed bug where rpl_log called RESET MASTER with a running slave. This is not supposed to work. Also: removed unnecessary code from rpl_stm_EE_err2 and made it verify that an error occurred. Also: removed unnecessary code from rpl_ndb_ctype_ucs2_def.pull/47/merge
45 changed files with 223 additions and 124 deletions
-
7mysql-test/extra/rpl_tests/rpl_loaddata.test
-
9mysql-test/extra/rpl_tests/rpl_stm_EE_err2.test
-
5mysql-test/extra/rpl_tests/rpl_truncate_helper.test
-
1mysql-test/include/query_cache.inc
-
1mysql-test/r/cache_innodb.result
-
2mysql-test/r/innodb-autoinc-optimize.result
-
2mysql-test/r/innodb.result
-
25mysql-test/r/log_tables.result
-
2mysql-test/r/mysql_client_test.result
-
2mysql-test/r/partition.result
-
2mysql-test/r/status.result
-
2mysql-test/suite/binlog/r/binlog_auto_increment_bug33029.result
-
6mysql-test/suite/binlog/t/binlog_auto_increment_bug33029.test
-
6mysql-test/suite/rpl/r/rpl_alter_db.result
-
5mysql-test/suite/rpl/r/rpl_drop_db.result
-
2mysql-test/suite/rpl/r/rpl_drop_view.result
-
4mysql-test/suite/rpl/r/rpl_events.result
-
3mysql-test/suite/rpl/r/rpl_idempotency.result
-
3mysql-test/suite/rpl/r/rpl_ignore_table.result
-
5mysql-test/suite/rpl/r/rpl_loaddata.result
-
45mysql-test/suite/rpl/r/rpl_packet.result
-
2mysql-test/suite/rpl/r/rpl_row_max_relay_size.result
-
3mysql-test/suite/rpl/r/rpl_stm_EE_err2.result
-
24mysql-test/suite/rpl/r/rpl_truncate_2myisam.result
-
24mysql-test/suite/rpl/r/rpl_truncate_3innodb.result
-
16mysql-test/suite/rpl/t/rpl_alter_db.test
-
11mysql-test/suite/rpl/t/rpl_drop_db.test
-
5mysql-test/suite/rpl/t/rpl_drop_view.test
-
6mysql-test/suite/rpl/t/rpl_events.test
-
13mysql-test/suite/rpl/t/rpl_idempotency.test
-
3mysql-test/suite/rpl/t/rpl_ignore_table.test
-
20mysql-test/suite/rpl/t/rpl_packet.test
-
7mysql-test/suite/rpl/t/rpl_row_max_relay_size.test
-
2mysql-test/suite/rpl_ndb/r/rpl_ndb_2other.result
-
4mysql-test/suite/rpl_ndb/r/rpl_ndb_ctype_ucs2_def.result
-
2mysql-test/suite/rpl_ndb/r/rpl_ndb_multi.result
-
2mysql-test/suite/rpl_ndb/t/rpl_ndb_2other.test
-
11mysql-test/suite/rpl_ndb/t/rpl_ndb_ctype_ucs2_def.test
-
5mysql-test/suite/rpl_ndb/t/rpl_ndb_multi.test
-
3mysql-test/t/innodb-autoinc-optimize.test
-
2mysql-test/t/innodb.test
-
28mysql-test/t/log_tables.test
-
3mysql-test/t/mysql_client_test.test
-
5mysql-test/t/partition.test
-
7mysql-test/t/status.test
@ -1 +1,3 @@ |
|||
SET @old_general_log= @@global.general_log; |
|||
ok |
|||
SET @@global.general_log= @old_general_log; |
|||
@ -1,10 +1,14 @@ |
|||
source include/master-slave.inc; |
|||
connection master; |
|||
use mysql; # to be different from initial `test' db of mysqltest client |
|||
alter database collate latin1_bin; |
|||
save_master_pos; |
|||
|
|||
connection slave; |
|||
sync_with_master; |
|||
--echo ==== Verify that alter database does not stop replication ==== |
|||
|
|||
create database temp_db; |
|||
use temp_db; # to be different from initial `test' db of mysqltest client |
|||
alter database collate latin1_bin; |
|||
|
|||
sync_slave_with_master; |
|||
|
|||
--echo ==== Clean up ==== |
|||
connection master; |
|||
drop database temp_db; |
|||
sync_slave_with_master; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue