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