mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug #36041: mysql-test-run doesn't seem to string match
100% effectively on Windows The mysqltest docs state that the 'replace_result' command doesn't perform any escape processing. However the current implementation was processing backslash escapes in the from/to strings. This prevents replacing e.g. patch on windows (where backslash is used as a path separator). Fixed by removing the backslash escape processing from 'replace_result'. client/mysqltest.c: Bug #36041: remove the escape processing from --replace_result mysql-test/r/mysqltest.result: Bug #36041: test case mysql-test/t/mysqltest.test: Bug #36041: test case
This commit is contained in:
@ -2123,6 +2123,13 @@ rmdir $MYSQLTEST_VARDIR/tmp/testdir;
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/testdir/file1.txt;
|
||||
rmdir $MYSQLTEST_VARDIR/tmp/testdir;
|
||||
|
||||
#
|
||||
# Bug #36041: mysql-test-run doesn't seem to string match 100% effectively
|
||||
# on Windows
|
||||
#
|
||||
|
||||
--replace_result c:\\a.txt z
|
||||
SELECT 'c:\\a.txt' AS col;
|
||||
|
||||
--echo End of tests
|
||||
|
||||
|
Reference in New Issue
Block a user