[libc++] Remove uses of printf in some test support headers
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 19 Nov 2021 21:29:15 +0000 (16:29 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 22 Nov 2021 17:01:18 +0000 (12:01 -0500)
commite7cee55c9d6b178baae3388ae2f620b44cf51e63
tree21b749fa9e0804a864fbacfb489006212aac4bd9
parent04a6dc06a07b9eb89834a4ae80f56749de7474e7
[libc++] Remove uses of printf in some test support headers

In the test suite, we generally don't use printf or other reporting
utilities. It's not that it wouldn't be useful, it's just that some
platforms don't support IO.

Instead, we try to keep test cases small and self-contained so that
we can reasonably easily reproduce failures locally and debug them.
This patch removes printf in some of the last places in the test suite
that used it. The only remaining places are in a deque test and in the
filesystem tests. The filesystem tests are arguably fine to keep using
IO, since we're testing <filesystem>. The deque test will be handled
separately.

Differential Revision: https://reviews.llvm.org/D114282
libcxx/test/support/controlled_allocators.h
libcxx/test/support/type_id.h
libcxx/test/support/uses_alloc_types.h