On 07/08/2024 18:56, Bruno Haible wrote:
On 2024-07-07, I stated:
This provides enough justification for gnulib to override the glibc behaviour
here. I will therefore go ahead and override
PTHREAD_RWLOCK_INITIALIZER
pthread_rwlock_init
pthread_rwlock_attr_init
to use PREFER_WRITER or PREFER_WRITER_NONRECURSIVE, which both behave in a
sane way even in glibc ≥ 2.25.
Done through these two patches:
2024-08-07 Bruno Haible <br...@clisp.org>
pthread-rwlock tests: Strengthen tests.
* tests/test-pthread-rwlock-waitqueue.c: New file.
* modules/pthread-rwlock-tests (Files): Add it.
(Depends-on): Add extensions, nanosleep, stdbool.
(Makefile.am): Arrange to test test-pthread-rwlock-waitqueue.
FYI coreutils CI started failing with this on cfarm13.cfarm.net (debian 11.9)
with:
FAIL: test-pthread-rwlock-waitqueue
===================================
test-pthread-rwlock-waitqueue.c:234: assertion 'startswith (do_test ("RRRRR"), " R1
R2 R3 R4 R5")' failed
FAIL test-pthread-rwlock-waitqueue (exit status: 134)
cheers,
Padraig.