1
# Don't test this under valgrind, memory leaks will occur
2
--source include/not_valgrind.inc
4
# Binary must be compiled with debug for crash to occur
5
--source include/have_debug.inc
7
--source include/have_innodb.inc
9
CREATE TABLE t1(a int) engine=innodb;
11
insert into t1 values(9);
13
# Setup the mysqld to crash at certain point
14
SET SESSION debug="d,crash_commit_before";
16
# Write file to make mysql-test-run.pl expect crash and restart
17
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/master0.expect
19
# Run the crashing query
26
# Call script that will poll the server waiting for it to be back online again
27
--source include/wait_until_connected_again.inc