]> Savannah Git Hosting - gnulib.git/commitdiff
once-tests: New module, extracted from lock-tests.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:55:40 +0000 (23:55 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:55:40 +0000 (23:55 +0200)
* modules/once-tests: New file.
* modules/lock-tests (Files): Remove tests/test-once.c.
(Makefile.am): Don't build and test test-once1 and test-once2.

ChangeLog
modules/lock-tests
modules/once-tests [new file with mode: 0644]

index 67c46542f486efb186b9b02aad8cbf8c3c8548a9..87dc7788dfdc74a5f8ce0ae1e2e8933ce224abd6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2024-08-04  Bruno Haible  <bruno@clisp.org>
 
+       once-tests: New module, extracted from lock-tests.
+       * modules/once-tests: New file.
+       * modules/lock-tests (Files): Remove tests/test-once.c.
+       (Makefile.am): Don't build and test test-once1 and test-once2.
+
        once: New module, extracted from lock.
        * lib/glthread/once.h: New file, extracted from lib/glthread/lock.h.
        * lib/glthread/once.c: New file, extracted from lib/glthread/lock.c.
index 7b398e2327a1abfb41ed63e479426607414a4010..2a9855b0f20948a8e2f2584ef9e928f7021c72c4 100644 (file)
@@ -1,7 +1,6 @@
 Files:
 tests/test-rwlock1.c
 tests/test-lock.c
-tests/test-once.c
 tests/atomic-int-gnulib.h
 tests/macros.h
 m4/semaphore.m4
@@ -19,11 +18,7 @@ AC_CHECK_DECLS_ONCE([alarm])
 AC_REQUIRE([gl_SEMAPHORE])
 
 Makefile.am:
-TESTS += test-rwlock1 test-lock test-once1 test-once2
-check_PROGRAMS += test-rwlock1 test-lock test-once1 test-once2
+TESTS += test-rwlock1 test-lock
+check_PROGRAMS += test-rwlock1 test-lock
 test_rwlock1_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
 test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ @LIB_SEMAPHORE@
-test_once1_SOURCES = test-once.c
-test_once1_LDADD = $(LDADD) @LIBTHREAD@
-test_once2_SOURCES = test-once.c
-test_once2_LDADD = $(LDADD) @LIBMULTITHREAD@
diff --git a/modules/once-tests b/modules/once-tests
new file mode 100644 (file)
index 0000000..8684f25
--- /dev/null
@@ -0,0 +1,15 @@
+Files:
+tests/test-once.c
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-once1 test-once2
+check_PROGRAMS += test-once1 test-once2
+test_once1_SOURCES = test-once.c
+test_once1_LDADD = $(LDADD) @LIBTHREAD@
+test_once2_SOURCES = test-once.c
+test_once2_LDADD = $(LDADD) @LIBMULTITHREAD@