Zepp-Hanzj opened a new pull request, #3688:
URL: https://github.com/apache/nuttx-apps/pull/3688

   ## Summary
   
   Add regression coverage to `ostest` for the explicit-base handling fixed by 
apache/nuttx#19594.
   
   The new test:
   
   - exhaustively checks bases 2 through 36 with lower- and upper-case digits
   - verifies positional values and end pointers
   - exercises `strtol()`, `strtoul()`, `strtoll()`, `strtoull()`, 
`strtoimax()`, and `strtoumax()`
   - verifies that bases 1 and 37 still fail with `EINVAL`
   - is included by both the Make and CMake builds
   
   ## Impact
   
   This only extends `ostest`; application behavior is unchanged.
   
   ## Testing
   
   Built `sim:ostest` with GNU Make against apache/nuttx#19594.
   
   Without the libc fix, the new regression test fails at the first base-27 
assertion:
   
   ```text
   user_main: libc tests
   dump_assert_info: Assertion failed : at file: libc_strto.c:58 task: ostest 
process: ostest
   ostest_main: Exiting with status 256
   ```
   
   With the libc fix, the libc test section completes and ostest proceeds to 
the following tests:
   
   ```text
   user_main: libc tests
   
   End of test memory usage:
   ...
   user_main: setvbuf test
   ```
   
   Commit-level style checks also pass:
   
   ```text
   $ tools/checkpatch.sh -g HEAD~1..HEAD
   ✔️ All checks pass.
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to