[libc] Enable custom logging in LibcTest
commit9a7b4c934893d6bc571e1ce8efab2127ae5f4e45
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 14 Jun 2023 09:18:42 +0000 (14 09:18 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 14 Jun 2023 10:26:18 +0000 (14 10:26 +0000)
treeeb3f10f5687916a4d79b4b4aeb6017aae767b000
parent595a74391daaff8daffa2f6e19274792d0074565
[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
13 files changed:
libc/test/UnitTest/LibcTest.cpp
libc/test/UnitTest/LibcTest.h
libc/test/UnitTest/TestLogger.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