Hash :
77dd6278
Author :
Date :
2024-07-25T22:05:18
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.
Files:
tests/test-xstrtol.c
tests/test-xstrtoul.c
tests/test-xstrtol.sh
tests/macros.h
Depends-on:
inttypes
test-framework-sh
xstrtol-error
configure.ac:
Makefile.am:
TESTS += test-xstrtol.sh
check_PROGRAMS += test-xstrtol test-xstrtoul
test_xstrtol_LDADD = $(LDADD) @LIBINTL@
test_xstrtoul_LDADD = $(LDADD) @LIBINTL@