mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
e585decb45
PREVIOUS TO MYSQL 8.0 Description : ------------- The mysqld--defaults-file test fails when the test suite is run from a non-canonical path, which happens when the current working directory when mysql-test-run.pl is started contains a symbolic link. The problem is that this test case uses --replace-result with $MYSQL_TEST_DIR. This variable is a potentially non-canonical path based on the current working directory when mtr is started. However, the path in the expected error message from mysqld contains a canonical path. This means it does not contain $MYSQL_TEST_DIR if mtr's working directory is not the canonical path of the working directory. Because other tests produce output that may contain non-canonical paths, making $MYSQL_TEST_DIR always canonical is not a fix. Fix : ----- Introduced a new environment variable '$ABS_MYSQL_TEST_DIR' which will contin the canonical path to the test directory and replaced $MYSQL_TEST_DIR with the new variable in main.mysqld--defaults-file test file. This is a back-port of BUG#24579973. Change-Id: I3b8df6f2d7ce2b04e188a896d76250cc1addbbc1
31 lines
913 B
Text
31 lines
913 B
Text
# BUG#58455
|
|
# Starting mysqld with defaults file without extension cause
|
|
# segmentation fault
|
|
|
|
source include/not_embedded.inc;
|
|
source include/not_windows.inc;
|
|
|
|
# All these tests refer to configuration files that do not exist
|
|
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=/path/with/no/extension --print-defaults 2>&1;
|
|
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=/path/with.ext --print-defaults 2>&1;
|
|
|
|
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=relative/path/with.ext --print-defaults 2>&1;
|
|
|
|
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=relative/path/without/extension --print-defaults 2>&1;
|
|
|
|
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=with.ext --print-defaults 2>&1;
|
|
|
|
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
|
--error 1
|
|
exec $MYSQLD --defaults-file=no_extension --print-defaults 2>&1;
|
|
|