diff options
author | unknown <andrey@whirlpool.mysql.com> | 2007-05-26 16:36:38 +0200 |
---|---|---|
committer | unknown <andrey@whirlpool.mysql.com> | 2007-05-26 16:36:38 +0200 |
commit | 624d65c5918dcaf5ca9288a9c77a927643b1d4df (patch) | |
tree | 516cd5649117ba90cebe6af755b6e4a1bd031feb /mysql-test | |
parent | 1f5f609ae82fe5cd3e7cfe3cf6f24055d431bbc7 (diff) | |
download | mariadb-git-624d65c5918dcaf5ca9288a9c77a927643b1d4df.tar.gz |
Fix for
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/r/events_bugs.result:
uppercase
mysql-test/t/events.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_bugs.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_grant.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_logs_tests.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_scheduling.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_stress.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_time_zone.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_trans.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
mysql-test/t/events_trans_notembedded.test:
wait at the end of the script for event which haven't
finished their execution. This should solve
bug#26338 events_bugs.test fail on Debian
and
bug#28285 Test "events_bugs" has instable results of "select /*1*/ ... from processlist"
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/events_bugs.result | 2 | ||||
-rw-r--r-- | mysql-test/t/events.test | 14 | ||||
-rw-r--r-- | mysql-test/t/events_bugs.test | 10 | ||||
-rw-r--r-- | mysql-test/t/events_grant.test | 10 | ||||
-rw-r--r-- | mysql-test/t/events_logs_tests.test | 6 | ||||
-rw-r--r-- | mysql-test/t/events_scheduling.test | 10 | ||||
-rw-r--r-- | mysql-test/t/events_stress.test | 1 | ||||
-rw-r--r-- | mysql-test/t/events_time_zone.test | 6 | ||||
-rw-r--r-- | mysql-test/t/events_trans.test | 6 | ||||
-rw-r--r-- | mysql-test/t/events_trans_notembedded.test | 5 |
10 files changed, 65 insertions, 5 deletions
diff --git a/mysql-test/r/events_bugs.result b/mysql-test/r/events_bugs.result index ba3e5fa0289..fae530f556b 100644 --- a/mysql-test/r/events_bugs.result +++ b/mysql-test/r/events_bugs.result @@ -557,4 +557,4 @@ CREATE EVENT new_event ON SCHEDULE AT NOW() ENDS NOW() DO SELECT 1; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENDS NOW() DO SELECT 1' at line 1 CREATE EVENT new_event ON SCHEDULE AT NOW() STARTS NOW() ENDS NOW() DO SELECT 1; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'STARTS NOW() ENDS NOW() DO SELECT 1' at line 1 -drop database events_test; +DROP DATABASE events_test; diff --git a/mysql-test/t/events.test b/mysql-test/t/events.test index 575f9984a79..dcb591352a8 100644 --- a/mysql-test/t/events.test +++ b/mysql-test/t/events.test @@ -451,6 +451,10 @@ set global event_scheduler=off; --echo "Should have only our process now:" select /*4*/ user, host, db, command, state, info from information_schema.processlist where (command!='Daemon' || user='event_scheduler') and (info is null or info not like '%processlist%') order by info; drop event закачка21; +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc #### # Bug #16410 Events: CREATE EVENT is legal in a CREATE TRIGGER statement @@ -725,4 +729,14 @@ drop table t1| drop event e1| delimiter ;| + +# +# End of tests +# + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc + drop database events_test; diff --git a/mysql-test/t/events_bugs.test b/mysql-test/t/events_bugs.test index 5bd8ae67fb1..f369fbecd66 100644 --- a/mysql-test/t/events_bugs.test +++ b/mysql-test/t/events_bugs.test @@ -648,7 +648,15 @@ CREATE EVENT new_event ON SCHEDULE AT NOW() ENDS NOW() DO SELECT 1; --error ER_PARSE_ERROR CREATE EVENT new_event ON SCHEDULE AT NOW() STARTS NOW() ENDS NOW() DO SELECT 1; + + # # End of tests # -drop database events_test; + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc + +DROP DATABASE events_test; diff --git a/mysql-test/t/events_grant.test b/mysql-test/t/events_grant.test index 44288fc1ac6..cff2475c5aa 100644 --- a/mysql-test/t/events_grant.test +++ b/mysql-test/t/events_grant.test @@ -101,8 +101,14 @@ disconnect ev_con1; connection default; DROP USER ev_test@localhost; DROP DATABASE events_test2; + +# +# End of tests # -## EVENTS grants test end -# + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc DROP DATABASE events_test; diff --git a/mysql-test/t/events_logs_tests.test b/mysql-test/t/events_logs_tests.test index 25b75f13f01..0c56f32beff 100644 --- a/mysql-test/t/events_logs_tests.test +++ b/mysql-test/t/events_logs_tests.test @@ -107,4 +107,10 @@ SET SESSION long_query_time =@old_session_long_query_time; DROP DATABASE events_test; + SET GLOBAL event_scheduler=off; + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc diff --git a/mysql-test/t/events_scheduling.test b/mysql-test/t/events_scheduling.test index 31c09a3d561..b1eeae1e020 100644 --- a/mysql-test/t/events_scheduling.test +++ b/mysql-test/t/events_scheduling.test @@ -106,3 +106,13 @@ DROP TABLE table_3; DROP TABLE table_4; DROP DATABASE events_test; SET GLOBAL event_scheduler=OFF; + +# +# End of tests +# + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc + diff --git a/mysql-test/t/events_stress.test b/mysql-test/t/events_stress.test index fd1ae34ac3c..22959898b43 100644 --- a/mysql-test/t/events_stress.test +++ b/mysql-test/t/events_stress.test @@ -133,4 +133,5 @@ DROP USER event_user3@localhost; # # DROP DATABASE test end (bug #16406) # + DROP DATABASE events_test; diff --git a/mysql-test/t/events_time_zone.test b/mysql-test/t/events_time_zone.test index 5f929e0b07a..af3466a339c 100644 --- a/mysql-test/t/events_time_zone.test +++ b/mysql-test/t/events_time_zone.test @@ -288,7 +288,11 @@ DROP TABLE t_step; DROP DATABASE mysqltest_db1; --disable_query_log eval USE $old_db; ---enable_query_log +--enable_query_log +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='mysqltest_db1' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc --echo End of 5.1 tests. diff --git a/mysql-test/t/events_trans.test b/mysql-test/t/events_trans.test index 77427070cbb..562b5a9625f 100644 --- a/mysql-test/t/events_trans.test +++ b/mysql-test/t/events_trans.test @@ -111,5 +111,11 @@ commit work; # # Cleanup # + +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc + drop database events_test; diff --git a/mysql-test/t/events_trans_notembedded.test b/mysql-test/t/events_trans_notembedded.test index adc293d7e79..3c151dd18b1 100644 --- a/mysql-test/t/events_trans_notembedded.test +++ b/mysql-test/t/events_trans_notembedded.test @@ -57,5 +57,10 @@ drop database mysqltest_db2; # # Cleanup # +let $wait_condition= + select count(*) = 0 from information_schema.processlist + where db='events_test' and command = 'Connect' and user=current_user(); +--source include/wait_condition.inc + drop database events_test; |