summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-04-25 18:59:41 +0200
committerSergei Golubchik <serg@mariadb.org>2016-04-25 22:46:43 +0200
commit22204807317c467b2f09dd0dcd13898a48501b10 (patch)
tree9ad61ee9838a7996a427eccfd81f27538f6954c5 /mysql-test/t
parenta98ecc2aafcbc08f27a2f7faba872e7a0d25fee2 (diff)
downloadmariadb-git-22204807317c467b2f09dd0dcd13898a48501b10.tar.gz
MDEV-7775 Wrong error message (Unknown error) when idle sessions are killed after wait_timeout
restore the error message that was removed by mistake in ec38c1bbd709
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/wait_timeout_not_windows.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/wait_timeout_not_windows.test b/mysql-test/t/wait_timeout_not_windows.test
new file mode 100644
index 00000000000..43ba48e4c43
--- /dev/null
+++ b/mysql-test/t/wait_timeout_not_windows.test
@@ -0,0 +1,15 @@
+source include/not_windows.inc;
+
+#
+# MDEV-7775 Wrong error message (Unknown error) when idle sessions are killed after wait_timeout
+#
+set global log_warnings=2;
+connect (foo,localhost,root);
+set @@wait_timeout=1;
+sleep 2;
+connection default;
+let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err;
+let SEARCH_RANGE= -50;
+let SEARCH_PATTERN= Aborted.*Got timeout reading communication packets;
+source include/search_pattern_in_file.inc;
+set global log_warnings=@@log_warnings;