Merge/shared string_printf and string_vprintf unit tests
authorPedro Alves <palves@redhat.com>
Mon, 30 Oct 2017 11:41:34 +0000 (11:41 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 30 Oct 2017 11:41:34 +0000 (11:41 +0000)
commit4a25033455f1e4e0325fdd249e30a79efc856689
tree29bf136dc6936d3e2794e8dcfffa470dc52593d5
parent16c5c17e43b34c6cc5337b40e927bc2d05c38300
Merge/shared string_printf and string_vprintf unit tests

Merge the string_printf and string_vprintf tests, running them all
against both functions.

gdb/ChangeLog:
2017-10-30  Pedro Alves  <palves@redhat.com>

* unittests/common-utils-selftests.c (format_func): New typedef.
(string_printf_tests, string_vprintf_tests): Tests factored out
and merged to ...
(test_format_func): ... this new function.
(string_printf_tests, string_vprintf_tests): Reimplement on top of
test_format_func.
gdb/ChangeLog
gdb/unittests/common-utils-selftests.c