]> Savannah Git Hosting - gnulib.git/commit
xstrtol, xstrtoll tests: Test behaviour for an invalid base.
authorBruno Haible <bruno@clisp.org>
Thu, 25 Jul 2024 20:05:18 +0000 (22:05 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 25 Jul 2024 20:05:59 +0000 (22:05 +0200)
commit77dd627875935a4bfd39baf1e597a33ad4fad804
tree476a74e94b483da8e39958d8a4d33fe734ebaef1
parentf9d6d12c37745c2ebd7a8d02d24faced3a5669be
xstrtol, xstrtoll tests: Test behaviour for an invalid base.

Reported by Alejandro Colomar <alx@kernel.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00249.html>.

* modules/xstrtol-tests (Files): Add tests/macros.h.
* modules/xstrtoll-tests (Files): Likewise.
* tests/test-xstrtol.c: Include macros.h.
(main): If no arguments are given on the command line, perform
miscellaneous tests.
* tests/test-xstrtol.sh: Also invoke test-xstrtol without arguments.
* tests/test-xstrtoll.sh: Also invoke test-xstrtoll without arguments.
ChangeLog
modules/xstrtol-tests
modules/xstrtoll-tests
tests/test-xstrtol.c
tests/test-xstrtol.sh
tests/test-xstrtoll.sh