Hash :
8eaecd9d
Author :
Date :
2024-03-05T13:44:13
c-strtold: Add multithread-safety test. * tests/test-c-strtold-mt.c: New file. * tests/test-c-strtold-mt.sh: New file, based on tests/test-c-strtold1.sh. * modules/c-strtold-tests (Files): Add them. (Depends-on): Add thread, nanosleep. (Makefile.am): Arrange to build test-c-strtold-mt and run test-c-strtold-mt.sh.
Files:
tests/test-c-strtold.c
tests/test-strtold.h
tests/test-c-strtold1.sh
tests/test-c-strtold1.c
tests/test-c-strtold-mt.sh
tests/test-c-strtold-mt.c
tests/minus-zero.h
tests/macros.h
m4/locale-fr.m4
m4/codeset.m4
Depends-on:
float
isnanl-nolibm
signbit
setlocale
thread
nanosleep
configure.ac:
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
Makefile.am:
TESTS += test-c-strtold
check_PROGRAMS += test-c-strtold
TESTS += test-c-strtold1.sh test-c-strtold-mt.sh
TESTS_ENVIRONMENT += \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LC_NUMERIC_IMPLEMENTED='@LC_NUMERIC_IMPLEMENTED@'
check_PROGRAMS += test-c-strtold1 test-c-strtold-mt
test_c_strtold1_LDADD = $(LDADD) $(SETLOCALE_LIB)
test_c_strtold_mt_LDADD = $(LDADD) $(SETLOCALE_LIB) $(LIBMULTITHREAD) $(NANOSLEEP_LIB)