mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
The test never gave a value outside the range of the value type but inside the range of the conversion method type. The range check of rtems_string_to_int() and rtems_string_to_unsigned_int() had no coverage. The lower bound of that check had no coverage in any test. Add a case for each bound. The macros hold a value only where the conversion method type is wider. On a target where the two types have the same width the test is unchanged. Rename TEST_TOO_LARGE_FOR_UCHAR to TEST_TOO_LARGE_FOR_TYPE, because every narrow type uses it. Update #5708. Assisted-by: Claude:claude-opus-5 claude-code Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>