1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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.
This commit is contained in:
Bruno Haible
2024-06-22 21:59:50 +02:00
parent b216546a9d
commit 94c5a52ccb
6 changed files with 179 additions and 83 deletions

View File

@@ -0,0 +1,15 @@
Files:
tests/test-obstack-zprintf.c
tests/test-obstack-printf.h
tests/signature.h
tests/macros.h
Depends-on:
xalloc
configure.ac:
Makefile.am:
TESTS += test-obstack-zprintf
check_PROGRAMS += test-obstack-zprintf
test_obstack_zprintf_LDADD = $(LDADD) @LIBINTL@