Skip to content

Commit 7374546

Browse files
DaveGosselin-MariaDBgrooverdan
authored andcommitted
MDEV-37851: main.repair_symlink-5543 broken on macOS
Add error code 62 to the list of system-dependent but expected error codes.
1 parent aa8af2d commit 7374546

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mysql-test/main/repair_symlink-5543.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ eval create table t1 (a int) engine=myisam data directory='$MYSQL_TMP_DIR';
1010
insert t1 values (1);
1111
--system ln -s $MYSQL_TMP_DIR/foobar5543 $MYSQL_TMP_DIR/t1.TMD
1212
# Some systems fail with errcode 31 (FreeBSD), 40 (Linux), 85 (AIX),
13-
# or 90 (MIPS) when doing openat,
13+
# 62 (macOS), or 90 (MIPS) when doing openat,
1414
# while others don't have openat and fail with errcode 20.
15-
--replace_regex / '.*\/t1/ 'MYSQL_TMP_DIR\/t1/ /[49]0|31|85/20/ /".*"/"<errmsg>"/
15+
--replace_regex / '.*\/t1/ 'MYSQL_TMP_DIR\/t1/ /[49]0|31|85|62/20/ /".*"/"<errmsg>"/
1616
repair table t1;
1717
drop table t1;
1818

1919
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
2020
eval create table t2 (a int) engine=aria data directory='$MYSQL_TMP_DIR';
2121
insert t2 values (1);
2222
--system ln -s $MYSQL_TMP_DIR/foobar5543 $MYSQL_TMP_DIR/t2.TMD
23-
--replace_regex / '.*\/t2/ 'MYSQL_TMP_DIR\/t2/ /[49]0|31|85/20/ /".*"/"<errmsg>"/
23+
--replace_regex / '.*\/t2/ 'MYSQL_TMP_DIR\/t2/ /[49]0|31|85|62/20/ /".*"/"<errmsg>"/
2424
repair table t2;
2525
drop table t2;
2626

0 commit comments

Comments
 (0)