Files
rtems/testsuites/libtests
Sebastian Huber 155de47f14 libtests/stringto01: Test the value range check
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>
2026-08-20 03:24:52 +02:00
..
2026-06-25 17:37:09 -05:00

libtests

This directory contains tests for some of the items in the lib directories. The intent is to be able to verify the basic functionality of a library. For example, it is important to know that the stack checker successfully detects tasks which both stay within and exceed their stack limits.