diff options
| author | Pavan Naik <pavan.naik@oracle.com> | 2018-02-05 19:30:37 +0530 |
|---|---|---|
| committer | Pavan Naik <pavan.naik@oracle.com> | 2018-02-09 22:08:35 +0530 |
| commit | e585decb459740ec53b1ac1b85f332f7bd3c8ccf (patch) | |
| tree | e1f240d1f623e8f1cddad3e5837f02e22f482a60 /sql/sql_truncate.cc | |
| parent | 3fb2f8db179c2ea9a15fcc2f142c5b98c5aab17a (diff) | |
| download | mariadb-git-e585decb459740ec53b1ac1b85f332f7bd3c8ccf.tar.gz | |
BUG#27448061: MYSQLD--DEFAULTS-FILE TEST FAILS FOR NDB RELEASES
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
Diffstat (limited to 'sql/sql_truncate.cc')
0 files changed, 0 insertions, 0 deletions
