Eliminate 'CORD_*printf is never used' cppcheck style warnings (cordtest)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Oct 2016 08:24:26 +0000 (11:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 27 Oct 2016 08:24:26 +0000 (11:24 +0300)
commitda4203df71cf2e030afdc48f90b93a817f79a592
tree8994c9ab641f18d6c9133abbf8660f583b43c0a9
parentb97e18ce5726ceff1e0a55ebe296fe89f411b347
Eliminate 'CORD_*printf is never used' cppcheck style warnings (cordtest)

Minimal testing of CORD_[v][f]printf is added to cordtest.

* cord/tests/cordtest.c: Include stdarg.h.
* cord/tests/cordtest.c: Reformat the comment describing cordtest.
* cord/tests/cordtest.c (wrap_vprintf, wrap_vfprintf): New function
(calling CORD_v[f]printf).
* cord/tests/cordtest.c (test_printf): Call CORD_printf, wrap_vfprintf,
wrap_vprintf for CORD_EMPTY (with the output to stdout); add TODO item.
cord/tests/cordtest.c