]> Savannah Git Hosting - gnulib.git/commit
nstrftime: Add tests of all directives, also in non-trivial locales.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 22:53:09 +0000 (23:53 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 22:53:09 +0000 (23:53 +0100)
commitde57613d999165a97ce54c93cb53069084cce08d
tree0014b842d874a5de5f0bf9dee4f0b70ff65f7d03
parent44a6681ba834fb575828e3864d4c21d3a7e2410e
nstrftime: Add tests of all directives, also in non-trivial locales.

* tests/test-nstrftime.h (language_t): New type.
(locales_test): New function.
* tests/test-nstrftime.c: Include <locale.h>, <stdlib.h>.
(main): Invoke setlocale and locales_test.
* tests/test-nstrftime-1.sh: New file.
* tests/test-nstrftime-2.sh: New file, based on tests/test-strtod1.sh.
* modules/nstrftime-tests (Files): Add them. Add m4/locale-fr.m4,
m4/codeset.m4, m4/musl.m4.
(configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8, gl_MUSL_LIBC.
(Makefile.am): Link test-nstrftime with $(SETLOCALE_LIB). Test
test-nstrftime-*.sh instead of test-nstrftime.
ChangeLog
modules/nstrftime-tests
tests/test-nstrftime-1.sh [new file with mode: 0755]
tests/test-nstrftime-2.sh [new file with mode: 0755]
tests/test-nstrftime.c
tests/test-nstrftime.h