Bug #4842
opengsm0408 test fails on several architectures
90%
Description
https://buildd.debian.org/status/logs.php?pkg=libosmocore&ver=1.4.0-1
25: gsm0408 FAILED (testsuite.at:156)
The pattern of the failures is
-LU with truncated IMSI MI: rc = -74 ok
-LU with too short IMSI MI (12345): rc = -74 ok
+LU with truncated IMSI MI: rc = -77 ok
+LU with too short IMSI MI (12345): rc = -77 ok
The root cause is likely related to
/usr/include/asm-generic/errno.h:#define EBADMSG 74 /* Not a data message /
/usr/include/mips64el-linux-gnuabi64/asm/errno.h:#define EBADMSG 77 / Not a data message */
Updated by laforge over 3 years ago
- Assignee set to pespin
thanks, we will try to fix this in the next version, which is due to be released still in Q4/2020.
Updated by laforge over 3 years ago
- Assignee changed from pespin to neels
assigning to neels, who (AFAIR) created the osmo_mobile_identity API.
I agree that the fundamental problem is the assumption that the numeric value of EBADMSG is identical across architectures. That's wrong s errno values are highly architecture dependent.
Updated by pespin over 3 years ago
We already run into this kind of problems in some unit tests before, so worth looking at how we fixed it in other places.
Probably simply print strerror() instead of errno.
Updated by neels over 3 years ago
pespin feel free to take this issue back if you like
Updated by laforge over 3 years ago
- Category changed from libosmocore to libosmogb
Updated by neels almost 2 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
sorry for the delay: https://gerrit.osmocom.org/c/libosmocore/+/29200