]> Savannah Git Hosting - gnulib.git/commit
obstack-zprintf: Add tests.
authorBruno Haible <bruno@clisp.org>
Sat, 22 Jun 2024 19:59:50 +0000 (21:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 22 Jun 2024 19:59:50 +0000 (21:59 +0200)
commit94c5a52ccbef8fbc3d1af56d12e120e51b4ca75f
tree0e9abdeae97480a1e9d4b0f65f6eee1ce2481c3b
parentb216546a9d3e3fd6097d9a8ab3dd1e67a8a68434
obstack-zprintf: Add tests.

* tests/test-obstack-printf.h: New file, based on
tests/test-obstack-printf.c.
* tests/test-obstack-printf.c: Include test-obstack-printf.h.
(obstack_chunk_alloc, obstack_chunk_free, test_function): Moved to
tests/test-obstack-printf.h.
(test_obstack_vprintf, test_obstack_printf): Remove functions.
(main): Inline them here.
* tests/test-obstack-zprintf.c: New file, based on
tests/test-obstack-printf.c.
* modules/obstack-printf-tests (Files): Add tests/test-obstack-printf.h.
* modules/obstack-zprintf-tests: New file.
ChangeLog
modules/obstack-printf-tests
modules/obstack-zprintf-tests [new file with mode: 0644]
tests/test-obstack-printf.c
tests/test-obstack-printf.h [new file with mode: 0644]
tests/test-obstack-zprintf.c [new file with mode: 0644]