summaryrefslogtreecommitdiff
path: root/mysql-test/main/lock_kill.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-07-02 08:26:32 +0200
committerSergei Golubchik <serg@mariadb.org>2021-07-02 16:44:00 +0200
commit59bc063d26b2d2013f1d21ec8d16554ab44281f3 (patch)
tree9a32ddcf945b590f95c52f34f12b716f5f453781 /mysql-test/main/lock_kill.test
parent4145ebf99a5f88fd4836dbb931a2f87c90b88a5e (diff)
downloadmariadb-git-59bc063d26b2d2013f1d21ec8d16554ab44281f3.tar.gz
main.lock_kill fails in embedded
when killing a query in a parallel connection, disable warnings. Because --error doesn't apply to automatically sent SHOW WARNINGS, so if KILL arrives at the right moment the test will fail with mysqltest: At line 41: Error running query "SHOW WARNINGS": Server has gone away
Diffstat (limited to 'mysql-test/main/lock_kill.test')
-rw-r--r--mysql-test/main/lock_kill.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/main/lock_kill.test b/mysql-test/main/lock_kill.test
index 2c1396e5ff3..5cf67fd3bc8 100644
--- a/mysql-test/main/lock_kill.test
+++ b/mysql-test/main/lock_kill.test
@@ -17,8 +17,10 @@ LOCK TABLE t1 WRITE;
eval KILL $conid;
--enable_query_log
--connection con1
+--disable_warnings
--error 0,2006,2013,ER_CONNECTION_KILLED
reap;
+--enable_warnings
--connection default
--disconnect con1
DROP TABLE t1;
@@ -35,8 +37,10 @@ LOCK TABLE t1 WRITE, t2 WRITE;
eval KILL $conid;
--enable_query_log
--connection con1
+--disable_warnings
--error 0,2006,2013,ER_CONNECTION_KILLED
reap;
+--enable_warnings
--connection default
--disconnect con1
DROP TABLE t1, t2;