summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-20 14:21:09 +0200
committerBruno Haible <bruno@clisp.org>2023-04-20 14:21:09 +0200
commite524987de9c1746ad1c9d3def0adff2582545eb9 (patch)
tree3a154c449461b23ac32872e6d588c8ead70c75b0 /modules
parent5a883444161a75e214a07a664a188b963c1b8c04 (diff)
downloadgnulib-e524987de9c1746ad1c9d3def0adff2582545eb9.tar.gz
Move remaining call_once tests from mtx-tests to call_once-tests.
* tests/test-call_once1.c: Renamed from tests/test-call_once.c. * tests/test-call_once2.c: New file, based on tests/test-mtx.c. * tests/test-mtx.c: Remove the code that was testing call_once. * modules/call_once-tests (Files): Add test-call_once1.c, test-call_once2.c. Remove test-call_once.c. (Depends-on): Add thrd, lock, stdint. (configure.ac): Check for alarm. (Makefile.am): Test test-call_once1 instead of test-call_once. Also test test-call_once2.
Diffstat (limited to 'modules')
-rw-r--r--modules/call_once-tests14
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/call_once-tests b/modules/call_once-tests
index 70bae25eb3..7889c9a1d7 100644
--- a/modules/call_once-tests
+++ b/modules/call_once-tests
@@ -1,12 +1,18 @@
Files:
-tests/test-call_once.c
+tests/test-call_once1.c
+tests/test-call_once2.c
tests/macros.h
Depends-on:
+thrd
+lock
+stdint
configure.ac:
+AC_CHECK_DECLS_ONCE([alarm])
Makefile.am:
-TESTS += test-call_once
-check_PROGRAMS += test-call_once
-test_call_once_LDADD = $(LDADD) @LIBSTDTHREAD@
+TESTS += test-call_once1 test-call_once2
+check_PROGRAMS += test-call_once1 test-call_once2
+test_call_once1_LDADD = $(LDADD) @LIBSTDTHREAD@
+test_call_once2_LDADD = $(LDADD) @LIBSTDTHREAD@ @LIBTHREAD@