mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Remove unnecessary have_debug.inc, not_valgrind.inc
Use include/kill_and_restart_mysqld.inc instead of triggering DBUG_SUICIDE() with debug instrumentation. In this way, more tests can be run with --valgrind or on non-debug servers.
This commit is contained in:
@ -8,12 +8,8 @@
|
||||
# DEBUG_SYNC must be compiled in.
|
||||
--source include/have_debug_sync.inc
|
||||
|
||||
# Valgrind would complain about memory leaks when we crash on purpose.
|
||||
--source include/not_valgrind.inc
|
||||
# Embedded server does not support crashing
|
||||
# Embedded server does not support restarting
|
||||
--source include/not_embedded.inc
|
||||
# Avoid CrashReporter popup on Mac
|
||||
--source include/not_crashrep.inc
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
@ -68,11 +64,11 @@ SELECT a, RIGHT(b,20) FROM t1;
|
||||
SELECT a FROM t1;
|
||||
|
||||
# Request a crash, and restart the server.
|
||||
SET DEBUG_DBUG='+d,crash_commit_before';
|
||||
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
--error 2013
|
||||
BEGIN;
|
||||
INSERT INTO t2 VALUES (42);
|
||||
|
||||
--source include/kill_and_restart_mysqld.inc
|
||||
|
||||
disconnect con1;
|
||||
disconnect con2;
|
||||
connection default;
|
||||
@ -80,7 +76,6 @@ connection default;
|
||||
--error 2013
|
||||
reap;
|
||||
|
||||
# Write file to make mysql-test-run.pl restart the server
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
--disable_reconnect
|
||||
@ -147,11 +142,7 @@ SET DEBUG_SYNC='now WAIT_FOR have_latch';
|
||||
SELECT info FROM information_schema.processlist
|
||||
WHERE state = 'debug sync point: before_row_upd_extern';
|
||||
|
||||
# Request a crash, and restart the server.
|
||||
SET DEBUG_DBUG='+d,crash_commit_before';
|
||||
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
--error 2013
|
||||
COMMIT;
|
||||
--source include/kill_and_restart_mysqld.inc
|
||||
|
||||
disconnect con2;
|
||||
connection default;
|
||||
@ -159,7 +150,6 @@ connection default;
|
||||
--error 2013
|
||||
reap;
|
||||
|
||||
# Write file to make mysql-test-run.pl restart the server
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
--disable_reconnect
|
||||
@ -191,11 +181,7 @@ SET DEBUG_SYNC='now WAIT_FOR have_latch';
|
||||
SELECT info FROM information_schema.processlist
|
||||
WHERE state = 'debug sync point: after_row_upd_extern';
|
||||
|
||||
# Request a crash, and restart the server.
|
||||
SET DEBUG_DBUG='+d,crash_commit_before';
|
||||
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
--error 2013
|
||||
COMMIT;
|
||||
--source include/kill_and_restart_mysqld.inc
|
||||
|
||||
disconnect con2;
|
||||
connection default;
|
||||
@ -203,11 +189,9 @@ connection default;
|
||||
--error 2013
|
||||
reap;
|
||||
|
||||
# Write file to make mysql-test-run.pl restart the server
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
--disable_reconnect
|
||||
|
||||
CHECK TABLE t1,t2,t3;
|
||||
SELECT a, RIGHT(b,20), RIGHT(c,20) FROM t3;
|
||||
SELECT a FROM t3;
|
||||
|
Reference in New Issue
Block a user