summaryrefslogtreecommitdiff
path: root/libc/test/src/math/log1p_test.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-06-14 11:55:29 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-06-14 13:37:50 +0000
commit9902fc8dadcc9a76a43b06483521db14c98908e0 (patch)
treeccf7d24d836a6917acfa0aa0966255eea7a7b5ec /libc/test/src/math/log1p_test.cpp
parent01e30b30d09aca13819b40bfeff634e776e2b564 (diff)
[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
Diffstat (limited to 'libc/test/src/math/log1p_test.cpp')
-rw-r--r--libc/test/src/math/log1p_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/test/src/math/log1p_test.cpp b/libc/test/src/math/log1p_test.cpp
index a2d2a4864aa7..f57b4f98c66b 100644
--- a/libc/test/src/math/log1p_test.cpp
+++ b/libc/test/src/math/log1p_test.cpp
@@ -106,11 +106,11 @@ TEST(LlvmLibcLog1pTest, InDoubleRange) {
++count;
// ASSERT_MPFR_MATCH(mpfr::Operation::Log1p, x, result, 0.5);
- if (!EXPECT_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Log1p, x,
- result, 0.5, rounding_mode)) {
+ if (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Log1p, x, result,
+ 0.5, rounding_mode)) {
++fails;
- while (!EXPECT_MPFR_MATCH_ROUNDING_SILENTLY(
- mpfr::Operation::Log1p, x, result, tol, rounding_mode)) {
+ while (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Log1p, x,
+ result, tol, rounding_mode)) {
mx = x;
mr = result;
tol *= 2.0;