* modules/pthread-rwlock-extra-tests: New file.
* modules/pthread-rwlock-tests: Revert 2024-08-07 changes.
(Depends-on): Add pthread-rwlock-extra-tests.
+2024-08-12 Bruno Haible <bruno@clisp.org>
+
+ pthread-rwlock tests: Move the waitqueue test into a separate module.
+ * modules/pthread-rwlock-extra-tests: New file.
+ * modules/pthread-rwlock-tests: Revert 2024-08-07 changes.
+ (Depends-on): Add pthread-rwlock-extra-tests.
+
2024-08-12 Bruno Haible <bruno@clisp.org>
pthread-rwlock: Attempt to avoid test failure on some more machines.
--- /dev/null
+Files:
+tests/test-pthread-rwlock-waitqueue.c
+tests/macros.h
+
+Depends-on:
+extensions
+pthread-thread
+nanosleep
+stdbool
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-pthread-rwlock-waitqueue
+check_PROGRAMS += test-pthread-rwlock-waitqueue
+test_pthread_rwlock_waitqueue_LDADD = $(LDADD) @LIBPMULTITHREAD@ @NANOSLEEP_LIB@
Files:
tests/test-pthread-rwlock.c
-tests/test-pthread-rwlock-waitqueue.c
tests/atomic-int-posix.h
tests/macros.h
m4/semaphore.m4
Depends-on:
-extensions
pthread-thread
pthread-mutex
sched_yield
random
-nanosleep
-stdbool
+pthread-rwlock-extra-tests
configure.ac:
AC_CHECK_HEADERS_ONCE([semaphore.h])
AC_REQUIRE([gl_SEMAPHORE])
Makefile.am:
-TESTS += test-pthread-rwlock test-pthread-rwlock-waitqueue
-check_PROGRAMS += test-pthread-rwlock test-pthread-rwlock-waitqueue
+TESTS += test-pthread-rwlock
+check_PROGRAMS += test-pthread-rwlock
test_pthread_rwlock_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ @LIB_SEMAPHORE@
-test_pthread_rwlock_waitqueue_LDADD = $(LDADD) @LIBPMULTITHREAD@ @NANOSLEEP_LIB@