Skip to content

Commit 3f683e2

Browse files
author
msvensson@neptunus.(none)
committed
Cleanup test cases that leaves "stuff" behind
1 parent 030de4f commit 3f683e2

14 files changed

+19
-9
lines changed

mysql-test/r/ctype_latin2_ch.result

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ select * from t1 ignore index (primary) where tt like 'AA%';
2828
id tt
2929
select * from t1 where tt like '%AA%';
3030
id tt
31+
drop table t1;

mysql-test/r/grant2.result

+1
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,4 @@ f2()
369369
drop function f2;
370370
drop table t2;
371371
REVOKE ALL PRIVILEGES, GRANT OPTION FROM `a@`@localhost;
372+
drop user `a@`@localhost;

mysql-test/r/openssl_1.result

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ f1
3838
5
3939
delete from t1;
4040
ERROR 42000: DELETE command denied to user 'ssl_user4'@'localhost' for table 't1'
41-
delete from mysql.user where user='ssl_user%';
42-
delete from mysql.db where user='ssl_user%';
43-
flush privileges;
41+
drop user ssl_user1@localhost, ssl_user2@localhost,
42+
ssl_user3@localhost, ssl_user4@localhost;
4443
drop table t1;

mysql-test/r/rpl_openssl.result

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File
2424
stop slave;
2525
change master to master_user='root',master_password='', master_ssl=0;
2626
start slave;
27+
drop user replssl@localhost;
2728
drop table t1;
2829
show slave status;
2930
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
30-
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 474 # # master-bin.000001 Yes Yes 0 0 474 # None 0 No MYSQL_TEST_DIR/std_data/cacert.pem MYSQL_TEST_DIR/std_data/client-cert.pem MYSQL_TEST_DIR/std_data/client-key.pem #
31+
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 564 # # master-bin.000001 Yes Yes 0 0 564 # None 0 No MYSQL_TEST_DIR/std_data/cacert.pem MYSQL_TEST_DIR/std_data/client-cert.pem MYSQL_TEST_DIR/std_data/client-key.pem #

mysql-test/r/sp-security.result

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ Warnings:
322322
Warning 1287 'SHOW INNODB STATUS' is deprecated; use 'SHOW ENGINE INNODB STATUS' instead
323323
GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost;
324324
DROP DATABASE db_bug7787;
325+
drop user user_bug7787@localhost;
325326
use test;
326327

327328
---> connection: root

mysql-test/r/sp_notembedded.result

+1
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,4 @@ drop procedure bug10100pv|
204204
drop procedure bug10100pd|
205205
drop procedure bug10100pc|
206206
drop view v1|
207+
drop table t3|

mysql-test/r/trigger.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ insert into t1 values
949949
create function f2() returns int return (select max(b) from t2);
950950
insert into t2 select a, f2() from t1;
951951
load data infile '../std_data_ln/words.dat' into table t1 (a) set b:= f1();
952-
drop table t1;
952+
drop table t1, t2;
953953
drop function f1;
954954
drop function f2;
955955
DROP TABLE IF EXISTS t1;

mysql-test/t/ctype_latin2_ch.test

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ select * from t1 ignore index (primary) where tt like 'AA%';
2828
select * from t1 where tt like '%AA%';
2929

3030
# End of 4.1 tests
31+
32+
drop table t1;

mysql-test/t/grant2.test

+1
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,4 @@ disconnect bug13310;
490490

491491
connection default;
492492
REVOKE ALL PRIVILEGES, GRANT OPTION FROM `a@`@localhost;
493+
drop user `a@`@localhost;

mysql-test/t/openssl_1.test

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ select * from t1;
4848
delete from t1;
4949

5050
connection default;
51-
delete from mysql.user where user='ssl_user%';
52-
delete from mysql.db where user='ssl_user%';
53-
flush privileges;
51+
drop user ssl_user1@localhost, ssl_user2@localhost,
52+
ssl_user3@localhost, ssl_user4@localhost;
53+
5454
drop table t1;
5555

5656
# End of 4.1 tests

mysql-test/t/rpl_openssl.test

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ stop slave;
5353
change master to master_user='root',master_password='', master_ssl=0;
5454
start slave;
5555
connection master;
56+
drop user replssl@localhost;
5657
drop table t1;
5758
save_master_pos;
5859
connection slave;

mysql-test/t/sp-security.test

+1
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost;
545545
# Cleanup.
546546

547547
DROP DATABASE db_bug7787;
548+
drop user user_bug7787@localhost;
548549
use test;
549550

550551

mysql-test/t/sp_notembedded.test

+1
Original file line numberDiff line numberDiff line change
@@ -258,5 +258,6 @@ drop procedure bug10100pv|
258258
drop procedure bug10100pd|
259259
drop procedure bug10100pc|
260260
drop view v1|
261+
drop table t3|
261262

262263
delimiter ;|

mysql-test/t/trigger.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ insert into t1 values
11111111
create function f2() returns int return (select max(b) from t2);
11121112
insert into t2 select a, f2() from t1;
11131113
load data infile '../std_data_ln/words.dat' into table t1 (a) set b:= f1();
1114-
drop table t1;
1114+
drop table t1, t2;
11151115
drop function f1;
11161116
drop function f2;
11171117

0 commit comments

Comments
 (0)