[libc] Enable custom logging in LibcTest
commit9902fc8dadcc9a76a43b06483521db14c98908e0
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 14 Jun 2023 11:55:29 +0000 (14 11:55 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 14 Jun 2023 13:37:50 +0000 (14 13:37 +0000)
treeccf7d24d836a6917acfa0aa0966255eea7a7b5ec
parent01e30b30d09aca13819b40bfeff634e776e2b564
[libc] Enable custom logging in LibcTest

This patch mimics the behavior of Google Test and allow users to log custom messages after all flavors of ASSERT_ / EXPECT_.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D152630
36 files changed:
libc/test/UnitTest/FPMatcher.h
libc/test/UnitTest/LibcTest.cpp
libc/test/UnitTest/LibcTest.h
libc/test/UnitTest/TestLogger.cpp
libc/test/src/math/exhaustive/acosf_test.cpp
libc/test/src/math/exhaustive/acoshf_test.cpp
libc/test/src/math/exhaustive/asinf_test.cpp
libc/test/src/math/exhaustive/asinhf_test.cpp
libc/test/src/math/exhaustive/atanf_test.cpp
libc/test/src/math/exhaustive/atanhf_test.cpp
libc/test/src/math/exhaustive/cosf_test.cpp
libc/test/src/math/exhaustive/coshf_test.cpp
libc/test/src/math/exhaustive/exp10f_test.cpp
libc/test/src/math/exhaustive/exp2f_test.cpp
libc/test/src/math/exhaustive/expf_test.cpp
libc/test/src/math/exhaustive/expm1f_test.cpp
libc/test/src/math/exhaustive/hypotf_test.cpp
libc/test/src/math/exhaustive/log10f_test.cpp
libc/test/src/math/exhaustive/log1pf_test.cpp
libc/test/src/math/exhaustive/log2f_test.cpp
libc/test/src/math/exhaustive/logf_test.cpp
libc/test/src/math/exhaustive/sincosf_test.cpp
libc/test/src/math/exhaustive/sinf_test.cpp
libc/test/src/math/exhaustive/sinhf_test.cpp
libc/test/src/math/exhaustive/tanf_test.cpp
libc/test/src/math/exhaustive/tanhf_test.cpp
libc/test/src/math/log10_test.cpp
libc/test/src/math/log1p_test.cpp
libc/test/src/math/log2_test.cpp
libc/test/src/math/log_test.cpp
libc/test/src/string/bcopy_test.cpp
libc/test/src/string/memmem_test.cpp
libc/test/src/string/memmove_test.cpp
libc/test/src/string/mempcpy_test.cpp
libc/utils/MPFRWrapper/MPFRUtils.h
utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel