List:Commits« Previous MessageNext Message »
From:horst Date:February 22 2008 1:54pm
Subject:bk commit into 5.1 tree (hhunger:1.2532) BUG#32664
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of hhunger.  When hhunger does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-02-22 13:54:49+01:00, hhunger@stripped +2 -0
  Replaced all --sleep by wait_condition (bug#32664).

  mysql-test/t/events_1.test@stripped, 2008-02-22 13:54:47+01:00, hhunger@stripped +9 -3
    Replaced all --sleep by wait_condition (bug#32664).

  mysql-test/t/events_2.test@stripped, 2008-02-22 13:54:47+01:00, hhunger@stripped +2 -0
    Replaced all --sleep by wait_condition (bug#32664).

diff -Nrup a/mysql-test/t/events_1.test b/mysql-test/t/events_1.test
--- a/mysql-test/t/events_1.test	2008-02-20 14:40:43 +01:00
+++ b/mysql-test/t/events_1.test	2008-02-22 13:54:47 +01:00
@@ -1,3 +1,6 @@
+# changes 2008-02-20 hhunger splitted events.test into events_1 and events_2
+# changes 2008-02-22 hhunger replaced all sleep by wait_condition
+#
 # Can't test with embedded server that doesn't support grants
 -- source include/not_embedded.inc
 
@@ -24,7 +27,8 @@ CREATE EVENT e_x2 ON SCHEDULE EVERY 1 SE
 connection default;
 SHOW DATABASES LIKE 'db_x';
 SET GLOBAL event_scheduler=1;
---sleep 1.2
+let $wait_condition= SELECT count(*)= 1 FROM INFORMATION_SCHEMA.SCHEMATA WHERE
SCHEMA_NAME LIKE 'db_x';
+--source include/wait_condition.inc
 SHOW DATABASES LIKE 'db_x';
 SHOW TABLES FROM db_x;
 SET GLOBAL event_scheduler=off;
@@ -90,7 +94,8 @@ begin
 end|
 delimiter ;|
 set global event_scheduler = on;
---sleep 3
+let $wait_condition= SELECT count(*)>0 from mysql.event where name='e_43' and
interval_value= 5;
+--source include/wait_condition.inc
 select db, name, body, status, interval_field, interval_value from mysql.event;
 drop event e_43;
 drop table test_nested;
@@ -98,7 +103,8 @@ drop table test_nested;
 --echo "Let's check whether we can use non-qualified names"
 create table non_qualif(a int);
 create event non_qualif_ev on schedule every 10 minute do insert into non_qualif values
(800219);
---sleep 1.1
+let $wait_condition=SELECT count(*)= 1 from non_qualif where a=800219;
+--source include/wait_condition.inc
 select * from non_qualif;
 drop event non_qualif_ev;
 drop table non_qualif;
diff -Nrup a/mysql-test/t/events_2.test b/mysql-test/t/events_2.test
--- a/mysql-test/t/events_2.test	2008-02-20 14:40:43 +01:00
+++ b/mysql-test/t/events_2.test	2008-02-22 13:54:47 +01:00
@@ -1,3 +1,5 @@
+# changes 2008-02-20 hhunger splitted events.test into events_1 and events_2
+#
 # Can't test with embedded server that doesn't support grants
 -- source include/not_embedded.inc
 
Thread
bk commit into 5.1 tree (hhunger:1.2532) BUG#32664horst22 Feb