| 1 |
# |
| 2 |
# Bug#70867 WRONG OS ERROR NUMBER REPORTED IN ERROR LOG DURING FAILURE AT STARTUP |
| 3 |
# |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
# This test uses chmod, can't be run with root permissions |
| 8 |
--source include/not_as_root.inc |
| 9 |
# disabling it on Windows as chmod semantics that we need in test-case |
| 10 |
# is not same as on Windows given the limited ACL bits available on Windows. |
| 11 |
# Aim of the TC is still being served by keep it enabled on other platforms. |
| 12 |
--source include/not_windows.inc |
| 13 |
|
| 14 |
|
| 15 |
#----------------------------------------------------------------------------- |
| 16 |
# |
| 17 |
let $MYSQL_DATA_DIR = `select @@datadir`; |
| 18 |
let SEARCH_FILE = $MYSQLTEST_VARDIR/log/my_restart.err; |
| 19 |
let $args = --loose-console --core-file > $SEARCH_FILE 2>&1; |
| 20 |
|
| 21 |
--source include/shutdown_mysqld.inc |
| 22 |
|
| 23 |
--mkdir $MYSQL_DATA_DIR/tmpdata |
| 24 |
--chmod 0400 $MYSQL_DATA_DIR/tmpdata |
| 25 |
--error 1 |
| 26 |
--exec $MYSQLD_CMD --innodb_data_home_dir=$MYSQL_DATA_DIR/tmpdata $args |
| 27 |
let SEARCH_PATTERN = returned OS error 113; |
| 28 |
--source ./include/search_pattern.inc |
| 29 |
let SEARCH_PATTERN = The error means mysqld does not have the access rights to; |
| 30 |
--source ./include/search_pattern.inc |
| 31 |
# |
| 32 |
--remove_file $SEARCH_FILE |
| 33 |
--chmod 0777 $MYSQL_DATA_DIR/tmpdata |
| 34 |
--rmdir $MYSQL_DATA_DIR/tmpdata |
| 35 |
# |
| 36 |
|
| 37 |
--source include/start_mysqld.inc |