bug#27571

non-deterministic tests refining.
This particular patch tested on two archs.
parent d9045a76
...@@ -218,11 +218,15 @@ set @b= 0; ...@@ -218,11 +218,15 @@ set @b= 0;
send update t4 set b=b + bug27563(b); send update t4 set b=b + bug27563(b);
connection con1; connection con1;
let $wait_condition= select count(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST where state='User lock';
source include/wait_condition.inc;
select count(*) FROM INFORMATION_SCHEMA.PROCESSLIST where state='User lock';
--replace_result $ID ID --replace_result $ID ID
eval kill query $ID; eval kill query $ID;
connection con2; connection con2;
--error 0,ER_QUERY_INTERRUPTED,ER_SP_PROC_TABLE_CORRUPT --error ER_QUERY_INTERRUPTED
reap; reap;
select * from t4 order by b /* must be (1,1), (1,2) */; select * from t4 order by b /* must be (1,1), (1,2) */;
select @b /* must be 1 at the end of a stmt calling bug27563() */; select @b /* must be 1 at the end of a stmt calling bug27563() */;
...@@ -261,11 +265,14 @@ set @b= 0; ...@@ -261,11 +265,14 @@ set @b= 0;
send delete from t4 where b=bug27563(1) or b=bug27563(2); send delete from t4 where b=bug27563(1) or b=bug27563(2);
connection con1; connection con1;
let $wait_condition= select count(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST where state='User lock';
source include/wait_condition.inc;
select count(*) FROM INFORMATION_SCHEMA.PROCESSLIST where state='User lock';
--replace_result $ID ID --replace_result $ID ID
eval kill query $ID; eval kill query $ID;
connection con2; connection con2;
--error 0,ER_QUERY_INTERRUPTED,ER_SP_PROC_TABLE_CORRUPT --error ER_QUERY_INTERRUPTED
reap; reap;
select count(*) from t4 /* must be 1 */; select count(*) from t4 /* must be 1 */;
select @b /* must be 1 at the end of a stmt calling bug27563() */; select @b /* must be 1 at the end of a stmt calling bug27563() */;
......
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