Commit c2ec8977 authored by Monty's avatar Monty

Fixed buildbot failures on Solaris 64 bit

rpl/rpl_mdev382     ; Wrong replace in show_binlog_events2.inc
binlog/database     ; Different error on Solaris if file exists
mroonga/repair_table_no_index_file ; Different system error on Solaris
partition_not_blackhole ; Different error on Solaris
partition_myisam     ; Different error on Solaris

Some other failures in mroonga was because have_32bit.inc didn't correctly
detect 64 bits on Solaris. Fixed using DEFAULT_MACHINE instead of MACHINE_TYPE
for Sys_version_compile_machine.
parent f383cbcb
...@@ -491,6 +491,7 @@ ...@@ -491,6 +491,7 @@
#define SYSTEM_TYPE "@SYSTEM_TYPE@" #define SYSTEM_TYPE "@SYSTEM_TYPE@"
#define MACHINE_TYPE "@CMAKE_SYSTEM_PROCESSOR@" #define MACHINE_TYPE "@CMAKE_SYSTEM_PROCESSOR@"
#define DEFAULT_MACHINE "@DEFAULT_MACHINE@"
#cmakedefine HAVE_DTRACE 1 #cmakedefine HAVE_DTRACE 1
#cmakedefine SIGNAL_WITH_VIO_CLOSE 1 #cmakedefine SIGNAL_WITH_VIO_CLOSE 1
......
...@@ -52,7 +52,7 @@ eval SELECT 'hello' INTO OUTFILE 'fake_file.$prefix'; ...@@ -52,7 +52,7 @@ eval SELECT 'hello' INTO OUTFILE 'fake_file.$prefix';
# Use '/' instead of '\' in the error message. On windows platform, dir is # Use '/' instead of '\' in the error message. On windows platform, dir is
# formed with '\'. # formed with '\'.
--replace_regex /\\testing_1\\*/\/testing_1\// /66/39/ --replace_regex /\\testing_1\\*/\/testing_1\// /66/39/ /17/39/ /File exists/Directory not empty/
--error 1010 --error 1010
DROP DATABASE testing_1; DROP DATABASE testing_1;
let $wait_binlog_event= DROP TABLE IF EXIST; let $wait_binlog_event= DROP TABLE IF EXIST;
......
...@@ -10,7 +10,8 @@ if ($binlog_file) ...@@ -10,7 +10,8 @@ if ($binlog_file)
{ {
--let $_in_binlog_file=in '$binlog_file' --let $_in_binlog_file=in '$binlog_file'
} }
--replace_result $_binlog_start <binlog_start> $MYSQLTEST_VARDIR MYSQLTEST_VARDIR --let $_from_binlog_start=from $_binlog_start
--replace_result "$_from_binlog_start" "from <binlog_start>" $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--replace_column 2 # 5 # --replace_column 2 # 5 #
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /file_id=[0-9]+/file_id=#/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ --replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /file_id=[0-9]+/file_id=#/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/
--eval show binlog events $_in_binlog_file from $_binlog_start --eval show binlog events $_in_binlog_file from $_binlog_start
...@@ -123,6 +123,7 @@ CHECK TABLE t1; ...@@ -123,6 +123,7 @@ CHECK TABLE t1;
SELECT * FROM t1; SELECT * FROM t1;
--echo # Note that it is currently impossible to drop a partitioned table --echo # Note that it is currently impossible to drop a partitioned table
--echo # without the .par file --echo # without the .par file
--replace_result "Not owner" "Operation not permitted"
--error ER_GET_ERRNO --error ER_GET_ERRNO
DROP TABLE t1; DROP TABLE t1;
--remove_file $MYSQLD_DATADIR/test/t1.frm --remove_file $MYSQLD_DATADIR/test/t1.frm
......
...@@ -19,6 +19,9 @@ SHOW TABLES; ...@@ -19,6 +19,9 @@ SHOW TABLES;
--replace_result $MYSQLD_DATADIR ./ --replace_result $MYSQLD_DATADIR ./
--error ER_NOT_FORM_FILE --error ER_NOT_FORM_FILE
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
# The replace is needed for Solaris
--replace_result "Not owner" "Operation not permitted"
--error ER_GET_ERRNO --error ER_GET_ERRNO
DROP TABLE t1; DROP TABLE t1;
--list_files $MYSQLD_DATADIR/test t1* --list_files $MYSQLD_DATADIR/test t1*
......
...@@ -3291,7 +3291,7 @@ static Sys_var_charptr Sys_version_compile_machine( ...@@ -3291,7 +3291,7 @@ static Sys_var_charptr Sys_version_compile_machine(
"version_compile_machine", "version_compile_machine", "version_compile_machine", "version_compile_machine",
READ_ONLY SHOW_VALUE_IN_HELP READ_ONLY SHOW_VALUE_IN_HELP
GLOBAL_VAR(server_version_compile_machine_ptr), NO_CMD_LINE, GLOBAL_VAR(server_version_compile_machine_ptr), NO_CMD_LINE,
IN_SYSTEM_CHARSET, DEFAULT(MACHINE_TYPE)); IN_SYSTEM_CHARSET, DEFAULT(DEFAULT_MACHINE));
static char *server_version_compile_os_ptr; static char *server_version_compile_os_ptr;
static Sys_var_charptr Sys_version_compile_os( static Sys_var_charptr Sys_version_compile_os(
......
...@@ -41,6 +41,9 @@ SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting"); ...@@ -41,6 +41,9 @@ SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting");
FLUSH TABLES; FLUSH TABLES;
# Error ER_CANT_OPEN_FILE syscall error 'repair_test.mrn.0000104' (No such file or directory) # Error ER_CANT_OPEN_FILE syscall error 'repair_test.mrn.0000104' (No such file or directory)
# The (Error 0)[0]" replaces is for Solaris
#
--replace_result "(Error 0)[0]" "(No such file or directory)"
--error ER_CANT_OPEN_FILE --error ER_CANT_OPEN_FILE
SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting"); SELECT * FROM diaries WHERE MATCH(body) AGAINST("starting");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment