]> Savannah Git Hosting - gnulib.git/commit
nstrftime tests: Allow reuse with another function.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 11:38:44 +0000 (12:38 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 11:40:07 +0000 (12:40 +0100)
commitf0abcb6594f6ec1e5e479ea64ce844d521797332
tree2519785938ad6b418ceb3733a2f69fbec06142cf
parent0b3e4c0091f7eeae71b9cf689dcdbb2e69fd86e3
nstrftime tests: Allow reuse with another function.

* tests/test-nstrftime.h: New file, extracted from
tests/test-nstrftime.c.
(FUNC_NAME, STRINGIFY): New macros.
(posixtm_test, tzalloc_test, quarter_test, errno_test): Use FUNC or
FUNC_NAME instead of nstrftime.
(quarter_test): Rename local variable 'result' to 'fail'.
* tests/test-nstrftime.c: Remove code that moved to test-nstrftime.h.
Include test-nstrftime.h.
(STREQ): Remove redundant macro.
* modules/nstrftime-tests (Files): Add tests/test-nstrftime.h.
ChangeLog
modules/nstrftime-tests
tests/test-nstrftime.c
tests/test-nstrftime.h [new file with mode: 0644]