Commit 0abeff72 authored by unknown's avatar unknown

Bug#19410 Test 'kill' fails on Windows + SCO


mysql-test/t/kill.test:
  Move the connect of second connection to just before the query to be killed are sent.
  This introduces less variance since the connect time is not included in the delay
  we want between send of query and kill.
parent 8fc4864e
...@@ -70,11 +70,14 @@ insert into t2 select id from t1; ...@@ -70,11 +70,14 @@ insert into t2 select id from t1;
create table t3 (kill_id int); create table t3 (kill_id int);
insert into t3 values(connection_id()); insert into t3 values(connection_id());
connect (conn2, localhost, root,,);
connection conn2;
connection conn1;
-- disable_result_log -- disable_result_log
send select id from t1 where id in (select distinct id from t2); send select id from t1 where id in (select distinct id from t2);
-- enable_result_log -- enable_result_log
connect (conn2, localhost, root,,);
connection conn2; connection conn2;
select ((@id := kill_id) - kill_id) from t3; select ((@id := kill_id) - kill_id) from t3;
-- sleep 1 -- sleep 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment