From: Bruno Haible Date: Mon, 12 Aug 2024 09:24:40 +0000 (+0200) Subject: pthread-rwlock tests: Move the waitqueue test into a separate module. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6fc3ac8f94a6172bf92640a9def08600a379f660;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 43f32c4fca..7533e2f5b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-08-12 Bruno Haible + + 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 pthread-rwlock: Attempt to avoid test failure on some more machines. diff --git a/modules/pthread-rwlock-extra-tests b/modules/pthread-rwlock-extra-tests new file mode 100644 index 0000000000..c14e3ed8ac --- /dev/null +++ b/modules/pthread-rwlock-extra-tests @@ -0,0 +1,16 @@ +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@ diff --git a/modules/pthread-rwlock-tests b/modules/pthread-rwlock-tests index cf52ec4d33..2ae848b1ef 100644 --- a/modules/pthread-rwlock-tests +++ b/modules/pthread-rwlock-tests @@ -1,18 +1,15 @@ 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]) @@ -20,7 +17,6 @@ AC_CHECK_DECLS_ONCE([alarm]) 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@