about summary refs log tree commit diff
path: root/stdlib/tst-strtod2.c
Commit message (Collapse)AuthorAgeFilesLines
* Add tests of more strtod special casesJoseph Myers2024-09-271-0/+14
| | | | | | | | | | | There is very little test coverage of inputs to strtod-family functions that don't contain anything that can be parsed as a number (one test of ".y" in tst-strtod2), and none that I can see of skipping initial whitespace. Add some tests of these things to tst-strtod2. Tested for x86_64. (cherry picked from commit 378039ca578c2ea93095a1e710d96f58c68a3997)
* Add more tests of strtod end pointerJoseph Myers2024-09-271-2/+39
| | | | | | | | | | | Although there are some tests in tst-strtod2 and tst-strtod3 for the end pointer provided by strtod when it doesn't parse the whole string, they aren't very thorough. Add tests of more such cases to tst-strtod2. Tested for x86_64. (cherry picked from commit b5d3737b305525315e0c7c93ca49eadc868eabd5)
* Make tst-strtod2 and tst-strtod5 type-genericJoseph Myers2024-09-271-33/+51
| | | | | | | | | | | | | | | | 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 tst-strtod2 and tst-strtod5 to use the type-generic machinery so they test 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. Tested for x86_64. (cherry picked from commit 8de031bcb9adfa736c0caed2c79d10947b8d8f48)
* * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_tUlrich Drepper2007-08-011-1/+1
| | | | | | | | | | | | | | | | value. * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning if off_t is different rank from size_t. * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program, uw_frame_state_for): Avoid type punning warnings. * sysdeps/generic/unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise. * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise. (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes, get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char pointers.
* [BZ #3855]Ulrich Drepper2007-01-111-11/+30
| | | | | | | | | * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by hexadecimal digit should accept just the initial 0. * stdlib/tst-strtod2.c (tests): New variable. (do_test): Run several tests rather than just one. 2007-01-11 Jakub Jelinek <jakub@redhat.com>
* * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousandUlrich Drepper2006-12-111-0/+25
| | | | | separators also if no non-zero digits found. * stdlib/Makefile (tests): Add tst-strtod3.
* (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper2004-12-221-44/+0
|
* 2.5-18.1Jakub Jelinek2007-07-121-0/+44