1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/gettext: skip meaningless test-pthread-rwlock

test-pthread-rwlock (expectedly) fails on riscv64 but does not test
anything that gettext does/needs.

skip it.

ref: https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00174.html
This commit is contained in:
Natanael Copa 2025-05-14 15:06:34 +00:00
parent 7fcd40a29d
commit 22fb86fcbf
2 changed files with 15 additions and 0 deletions

View file

@ -28,6 +28,7 @@ subpackages="
source="https://ftp.gnu.org/gnu/gettext/gettext-$pkgver.tar.xz
cwd.patch
skip-tests-musl.patch
skip-meaningless-pthread-rwlock-test.patch
"
# secfixes:
@ -94,4 +95,5 @@ sha512sums="
53d5c54105598cc6156b940ff82d9754f4b7cdeafcd2400206c975db9412012511b60a7ebefcd31068a0bc2d99173ecd93a66844c7f3a9772df69d53b3cebeb5 gettext-0.24.1.tar.xz
31796534e40c1569b08cf48e25375ca1d0f439df8aa0d24283769d52a290e28522760128f11f5bd04217605974ae1fdee9557ec189ed32b11b2a45b4af3b0f4a cwd.patch
a16963f804ce4abe8480da211228f7b24a0715d6ef3ff7d5e5c58a1387d6c4260ee237864081b05b164f082ef199a592494ce691dd0c96c61978e4c451707c7a skip-tests-musl.patch
e426f3a3bc39193e0dbf8d51e0019e672ddcab07b277281a1912fd0ec6a3fea5eb59bc4daeed465e152c567b05d6c3b457e4bc415a8d36dd768725fb72daf817 skip-meaningless-pthread-rwlock-test.patch
"

View file

@ -0,0 +1,13 @@
diff --git a/gettext-tools/gnulib-tests/test-pthread-rwlock.c b/gettext-tools/gnulib-tests/test-pthread-rwlock.c
index 90d6ac5..61009a7 100644
--- a/gettext-tools/gnulib-tests/test-pthread-rwlock.c
+++ b/gettext-tools/gnulib-tests/test-pthread-rwlock.c
@@ -198,6 +198,8 @@ test_rwlock (void)
int
main ()
{
+ fputs ("Skipping meaningless test which is expected to deadlock\n", stderr);
+ return 77;
#if HAVE_DECL_ALARM
/* Declare failure if test takes too long, by using default abort
caused by SIGALRM. */