diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-06-28 09:05:01 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-06-28 12:38:58 +0200 |
commit | 78a0646fe4ab7d58d900192ef7f4df905ed7442e (patch) | |
tree | b68da9bd437a9f740ad05149e49afd12eb063172 | |
parent | 00ccff48af17d82c815909aaee170c59c9439675 (diff) | |
download | mariadb-git-78a0646fe4ab7d58d900192ef7f4df905ed7442e.tar.gz |
make plugins.processlist more robust
-rw-r--r-- | mysql-test/suite/plugins/r/processlist.result | 4 | ||||
-rw-r--r-- | mysql-test/suite/plugins/t/processlist.test | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/mysql-test/suite/plugins/r/processlist.result b/mysql-test/suite/plugins/r/processlist.result index 22515c8174b..c27534d9d78 100644 --- a/mysql-test/suite/plugins/r/processlist.result +++ b/mysql-test/suite/plugins/r/processlist.result @@ -2,10 +2,8 @@ create table t1 (a int) engine=innodb; start transaction; insert t1 values (1); connect con2,localhost,root; -state from show engine innodb status +state from show engine innodb status, must be empty -state from show processlist - disconnect con2; connection default; drop table t1; diff --git a/mysql-test/suite/plugins/t/processlist.test b/mysql-test/suite/plugins/t/processlist.test index e8f03aacb10..39b715b867b 100644 --- a/mysql-test/suite/plugins/t/processlist.test +++ b/mysql-test/suite/plugins/t/processlist.test @@ -8,11 +8,12 @@ start transaction; insert t1 values (1); let id=`select connection_id()`; connect con2,localhost,root; +let $wait_condition=select state='' from information_schema.processlist where id = $id; +--source include/wait_condition.inc replace_regex /\"/-/; #" let s=`show engine innodb status`; disable_query_log; -eval select regexp_replace("$s", '(?s)^.*MySQL thread id $id,.*root([^\n]*)\n.*', '\\\\1') as `state from show engine innodb status`; -eval select state as `state from show processlist` from information_schema.processlist where id = $id; +eval select regexp_replace("$s", '(?s)^.*MySQL thread id $id,.*root([^\n]*)\n.*', '\\\\1') as `state from show engine innodb status, must be empty`; enable_query_log; disconnect con2; connection default; |