mirror of
https://github.com/MariaDB/server.git
synced 2025-12-13 20:03:16 +03:00
Bug#56657: Test still uses "--exec rm -f ..." which is non-portable Bug#56601: Test uses Unix path for temporary file, fails, and writes misleading message Several tests that was written in a non portable way (failed on windows) Fixed by 1) backporting the fix for replace_result to also apply to list_files (mysqltest from mysql-trunk) 2) replacing all #p#/#sp#/#tmp# to #P#/#SP#/#TMP#/ (innodb always converts filenames to lower case in windows). 3) replacing '--exec rm -f' with '--remove_files_wildcard' 4) replacing a perl snippet with '--write_file'
29 lines
828 B
PHP
29 lines
828 B
PHP
# Include file to decrease test code duplication
|
|
|
|
--eval $create_statement
|
|
--eval $insert_statement
|
|
--echo # State before crash
|
|
--replace_result #p# #P# #sp# #SP#
|
|
--list_files $DATADIR/test
|
|
SHOW CREATE TABLE t1;
|
|
--sorted_result
|
|
SELECT * FROM t1;
|
|
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
|
--disable_reconnect
|
|
# CR_SERVER_LOST
|
|
--error 2013
|
|
--eval $crash_statement
|
|
--echo # State after crash (before recovery)
|
|
--replace_regex /sqlx.*\./sqlx-nnnn_nnnn./ /#p#/#P#/ /#sp#/#SP#/ /#tmp#/#TMP#/
|
|
--list_files $DATADIR/test
|
|
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
|
--enable_reconnect
|
|
--source include/wait_until_connected_again.inc
|
|
--echo # State after crash recovery
|
|
--replace_result #p# #P# #sp# #SP#
|
|
--list_files $DATADIR/test
|
|
SHOW CREATE TABLE t1;
|
|
--sorted_result
|
|
SELECT * FROM t1;
|
|
DROP TABLE t1;
|