summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/kill_mysqld.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/kill_mysqld.inc')
-rw-r--r--mysql-test/include/kill_mysqld.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/include/kill_mysqld.inc b/mysql-test/include/kill_mysqld.inc
new file mode 100644
index 00000000..01ee7f82
--- /dev/null
+++ b/mysql-test/include/kill_mysqld.inc
@@ -0,0 +1,7 @@
+--let $_expect_file_name= `select regexp_replace(@@tmpdir, '^.*/','')`
+--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/$_expect_file_name.expect
+
+--echo # Kill the server
+--exec echo "wait" > $_expect_file_name
+--shutdown_server 0
+--source include/wait_until_disconnected.inc