Hash :
e524987d
Author :
Date :
2023-04-20T14:21:09
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.
Files:
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_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@