]> Savannah Git Hosting - gnulib.git/commitdiff
pthread-rwlock tests: Move the waitqueue test into a separate module.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 09:24:40 +0000 (11:24 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 09:24:40 +0000 (11:24 +0200)
* modules/pthread-rwlock-extra-tests: New file.
* modules/pthread-rwlock-tests: Revert 2024-08-07 changes.
(Depends-on): Add pthread-rwlock-extra-tests.

ChangeLog
modules/pthread-rwlock-extra-tests [new file with mode: 0644]
modules/pthread-rwlock-tests

index 43f32c4fcae65eec4c4d470059016c7101949532..7533e2f5b75b16a7dd80ec1b278134f511874b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
diff --git a/modules/pthread-rwlock-extra-tests b/modules/pthread-rwlock-extra-tests
new file mode 100644 (file)
index 0000000..c14e3ed
--- /dev/null
@@ -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@
index cf52ec4d3310a546992aad4fd3f2b13a5e03cc40..2ae848b1ef00a289602ba45d482d0caf01f548c1 100644 (file)
@@ -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@