summaryrefslogtreecommitdiff
path: root/mysql-test/t/mdev375.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/mdev375.test')
-rw-r--r--mysql-test/t/mdev375.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/mdev375.test b/mysql-test/t/mdev375.test
new file mode 100644
index 00000000000..fe259b37808
--- /dev/null
+++ b/mysql-test/t/mdev375.test
@@ -0,0 +1,22 @@
+#
+# MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3
+#
+--source include/not_embedded.inc
+
+SET GLOBAL log_warnings=4;
+SET GLOBAL max_connections=2;
+
+--connect (con1,localhost,root,,)
+SELECT 1;
+--connect (con2,localhost,root,,)
+SELECT 2;
+--disable_query_log
+--error ER_CON_COUNT_ERROR
+--connect (con3,localhost,root,,)
+--enable_query_log
+
+--connection default
+SELECT 0;
+
+SET GLOBAL log_warnings=default;
+SET GLOBAL max_connections=default;