2008-04-09 09:43:20 +02:00
|
|
|
|
2008-08-09 11:16:12 +02:00
|
|
|
# Write file to make mysql-test-run.pl expect the "crash", but don't start
|
|
|
|
# it until it's told to
|
2008-04-21 14:16:54 +02:00
|
|
|
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
2008-08-09 11:16:12 +02:00
|
|
|
wait
|
2008-04-21 14:16:54 +02:00
|
|
|
EOF
|
2008-04-09 09:43:20 +02:00
|
|
|
|
2008-04-21 14:16:54 +02:00
|
|
|
# Send shutdown to the connected server and give
|
|
|
|
# it 10 seconds to die before zapping it
|
2008-04-21 17:39:13 +02:00
|
|
|
shutdown_server 10;
|
2008-04-09 09:43:20 +02:00
|
|
|
|
2008-08-09 11:16:12 +02:00
|
|
|
# Check server is gone
|
|
|
|
--source include/wait_until_disconnected.inc
|
|
|
|
|
|
|
|
# Write file to make mysql-test-run.pl start up the server again
|
|
|
|
--append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
|
|
|
restart
|
|
|
|
EOF
|
2008-04-09 09:43:20 +02:00
|
|
|
|
|
|
|
# Turn on reconnect
|
|
|
|
--enable_reconnect
|
|
|
|
|
|
|
|
# Call script that will poll the server waiting for it to be back online again
|
|
|
|
--source include/wait_until_connected_again.inc
|
|
|
|
|
2008-04-21 14:16:54 +02:00
|
|
|
# Turn off reconnect again
|
|
|
|
--disable_reconnect
|
|
|
|
|