aboutsummaryrefslogtreecommitdiff
path: root/stdlib/tst-strtod4.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-27Make __strtod_internal tests type-genericJoseph Myers1-36/+68
Some of the strtod tests use type-generic machinery in tst-strtod.h to test the strto* functions for all floating types, while others only test double even when the tests are in fact meaningful for all floating types. Convert the tests of the internal __strtod_internal interface to cover all floating types. I haven't tried to convert them to use newer test interfaces in other ways, just made the changes necessary to use the type-generic machinery. As an internal interface, there are no aliases for different types with the same ABI (however, __strtold_internal is defined even if long double has the same ABI as double), so macros used by the type-generic testing code are redefined as needed to avoid expecting such aliases to be present. Tested for x86_64.
2023-10-12stdlib: fix grouping verification with multi-byte thousands separator (bug ↵Andreas Schwab1-1/+3
30964) The grouping verification only worked for a single-byte thousands separator. With a multi-byte separator it returned as if no separators were present. The actual parsing in str_to_mpn will then go wrong when there are multiple adjacent multi-byte separators in the number.
2017-08-12Adapt test case data to the changes in the thousands separatorsMike FABIAN1-3/+3
[BZ #20756] * localedata/tst-langinfo.sh: Adapt test case data. * stdlib/tst-strfmon_l.c: Likewise. * stdlib/tst-strtod4.c: Likewise. * stdlib/tst-strtod5i.c: Likewise.
2007-01-11Include errno.h. Change main() to do_test(). Define TEST_FUNCTION. Include ↵Ulrich Drepper1-0/+56
test-skeleton.c. (do_test): Check errno and exit(0) if ENOSYS.
2004-12-22(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper1-56/+0
2007-07-122.5-18.1Jakub Jelinek1-0/+56