mariadb/mysql-test/suite/parts/t/debug_innodb_fail.test
Daniel Black b99c3b20c9 Fixed test failure in parts.partition_debug_innodb/myisam
MDEV-22488 test failures: parts.partition_debug_innodb /
           parts.partition_debug_myisam

The reason for the failure was a wrong printf() that accessed not existing
things on the stack.
The reason the falure was hard to find was that the partition_debug_...
tests disables core dumps, so there was no trace that the server had
crashed in the logs.

Fixed by fixing the faulty push_warning_printf() and splitting the tests
into two parts, one that test failures (with core dumps enabled) and one
part that test crash recovery.

The review and test splitting was done by Monty
2020-05-09 12:46:33 +03:00

22 lines
815 B
Text

# Partitioning test that require debug features and InnoDB
--source include/have_debug.inc
--source include/have_innodb.inc
--source include/have_partition.inc
--source include/not_embedded.inc
# Checking with #innodb what this is...
call mtr.add_suppression("InnoDB: Warning: allocated tablespace .*, old maximum was");
# If there is a crash or failure between the ddl_log is written and the
# operation is completed, mysql will try to drop a not yet created partition
call mtr.add_suppression("table .* does not exist in the InnoDB internal");
call mtr.add_suppression("InnoDB: Warning: MySQL is trying to drop table ");
--let $DATADIR= `SELECT @@datadir;`
let $engine= 'InnoDB';
--echo # Test failure recovery in fast_alter_partition_table.
let $do_fail=1;
--source suite/parts/inc/partition_mgm_crash.inc