summaryrefslogtreecommitdiff
path: root/mysql-test/t/status.test
diff options
context:
space:
mode:
authordkatz@damien-katzs-computer.local <>2007-06-26 21:10:51 -0400
committerdkatz@damien-katzs-computer.local <>2007-06-26 21:10:51 -0400
commit1ce7a24766fa8e9d7ce4e53c177d4389598fc820 (patch)
treeef6e7537b82d00907c3220ba780783c78582e8ce /mysql-test/t/status.test
parentd3ec46f6f5dc6de0bf196008de1a6223c90598d2 (diff)
downloadmariadb-git-1ce7a24766fa8e9d7ce4e53c177d4389598fc820.tar.gz
Bug #29307 status.test fails with different Table_locks_immediate
Instead of sleeping for a fixed period of time, we wait until the other query is executing.
Diffstat (limited to 'mysql-test/t/status.test')
-rw-r--r--mysql-test/t/status.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/status.test b/mysql-test/t/status.test
index 746d3a352a4..1208393aa09 100644
--- a/mysql-test/t/status.test
+++ b/mysql-test/t/status.test
@@ -22,11 +22,14 @@ connection con2;
lock tables t1 read;
unlock tables;
lock tables t1 read;
+let $ID= `select connection_id()`;
connection con1;
--send
update t1 set n = 3;
connection con2;
-sleep 0.5;
+# wait for the other query to start executing
+let $wait_condition= select 1 from INFORMATION_SCHEMA.PROCESSLIST where ID = $ID and STATE = 0;
+--source include/wait_condition.inc
unlock tables;
connection con1;
reap;