aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-08-27 12:38:01 +0000
committerArjun Shankar <arjun@redhat.com>2024-09-27 17:24:13 +0200
commite06153665fa931e4c7d2a3ecc14e5197e96143a7 (patch)
treeca9863020bdac8caf15d645812579926b5fb8d28 /scripts/cpp
parent9bc76c7ca4d6022fd588c274d139813f99e04f35 (diff)
downloadglibc-e06153665fa931e4c7d2a3ecc14e5197e96143a7.tar.xz
glibc-e06153665fa931e4c7d2a3ecc14e5197e96143a7.zip
More thoroughly test underflow / errno in tst-strtod-round
Add tests of underflow in tst-strtod-round, and thus also test for errno being unchanged when there is neither overflow nor underflow. The errno setting before the function call to test for being unchanged is adjusted to set errno to 12345 instead of 0, so that any bugs where strtod sets errno to 0 would be detected. This doesn't add any new test inputs for tst-strtod-round, and in particular doesn't cover the edge cases of underflow the way tst-strtod-underflow does (none of the existing test inputs for tst-strtod-round actually exercise cases that have underflow with before-rounding tininess detection but not with after-rounding tininess detection), but at least it provides some coverage (as per the recent discussions) that ordinary non-overflowing non-underflowing inputs to these functions do not set errno. Tested for x86_64. (cherry picked from commit d73ed2601b7c3c93c3529149a3d7f7b6177900a8)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions