Skip to content

Commit 81baa6c

Browse files
luqunfacebook-github-bot
authored andcommitted
update dynamic_load_error to compare error message only
Summary: dynamic_load_error testcase simulate error during dynamic load wsenv library. Sometime dynamic_load_error MTR will fail due to different errno: 11(EAGAIN), ``` -ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 0 (null)) +ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 11 (null)) ``` update testcase to compare "Can't open shared library" only. Reviewed By: lth Differential Revision: D37026294 fbshipit-source-id: 5d466340a200c1a5238fb4ee02155b24f77590b6
1 parent 2549a07 commit 81baa6c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mysql-test/suite/sql_wsenv/r/dynamic_load_error_wsenv.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set enable_sql_wsenv=1;
22
CREATE TABLE t1(x VARCHAR(100));
33
SET SESSION debug='d,simulate_wsenv_dlopen_error';
44
SELECT * FROM t1 INTO OUTFILE 'OUTPUT_FILE';;
5-
ERROR HY000: Can't open shared library 'librocks_object_factory.so' (errno: 0 (null))
5+
ERROR HY000: Can't open shared library
66
SET SESSION debug=DEFAULT;
77
SELECT * FROM t1 INTO OUTFILE 'OUTPUT_FILE';;
88
ERROR HY000: Can't create/write to file 'OUTPUT_FILE' (OS errno 22 - Invalid argument)

mysql-test/suite/sql_wsenv/t/dynamic_load_error_wsenv.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CREATE TABLE t1(x VARCHAR(100));
77
SET SESSION debug='d,simulate_wsenv_dlopen_error';
88
--let $output_file=$SQL_WSENV_MTR_PATH/t1.txt
99
--replace_result $output_file OUTPUT_FILE
10+
--replace_regex /.*Can\'t open shared library.*/Can't open shared library/
1011
--error 92
1112
--eval SELECT * FROM t1 INTO OUTFILE '$output_file';
1213
SET SESSION debug=DEFAULT;

0 commit comments

Comments
 (0)