[MDEV-24214] mips, mips64el test fail on main.drop Created: 2020-11-15  Updated: 2020-11-17  Resolved: 2020-11-16

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.5.8
Fix Version/s: 10.5.9

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: None
Environment:

mips, mips64le



 Description   

build log:
https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.5&arch=mips64el&ver=1%3A10.5.8-1&stamp=1605368536&raw=0

extracted test failure

CURRENT_TEST: main.drop
--- /<<PKGBUILDDIR>>/mysql-test/main/drop.result	2020-11-10 13:14:54.000000000 +0000
+++ /<<PKGBUILDDIR>>/mysql-test/main/drop.reject	2020-11-14 15:35:43.769178590 +0000
@@ -135,7 +135,7 @@
 use mysql_test;
 create table t1(c int);
 drop database mysql_test;
-ERROR HY000: Error dropping database (can't rmdir './mysql_test', errno: 39 "Directory not empty")
+ERROR HY000: Error dropping database (can't rmdir './mysql_test', errno: 93 "Directory not empty")
 select database();
 database()
 mysql_test

introduced 79a3f96166c1c6b46bea859a357ec5c2a11d6b63

errno's aren't consistent across architectures. 93 is valid for mips

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/include/uapi/asm/errno.h?h=v5.10-rc3#n68



 Comments   
Comment by Daniel Black [ 2020-11-15 ]

bb-10.5-danielblack-MDEV-24124-mips-test-fail pushed.

Looking at log of mysql-test/suite/rpl/t/rpl_drop_db.test a variety of other codes as possible.

So copied its replace_result.

FYI otto

Comment by Daniel Black [ 2020-11-16 ]

fixed also for sparc and other arches by copying off rpl.rpl_drop_db test.

Comment by Otto Kekäläinen [ 2020-11-17 ]

Thanks danblack! Applied downstream in https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/a1cb9cf9336824abeaebab328df38a523e8fc7f7

Generated at Thu Feb 08 09:28:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.