[libc-commits] [libc] [libc] Make a couple of math smoke tests more robust. (PR #120808)
via libc-commits
libc-commits at lists.llvm.org
Fri Dec 20 15:45:33 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff e5de2a2df4f983e1db83deaaa1d21457c922404f 7f435b77b6a21c2a028bfdd9d08ab5e81d958750 --extensions h -- libc/test/src/math/smoke/CanonicalizeTest.h libc/test/src/math/smoke/FModTest.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/smoke/FModTest.h b/libc/test/src/math/smoke/FModTest.h
index 387ed29b35..8fbcc2a276 100644
--- a/libc/test/src/math/smoke/FModTest.h
+++ b/libc/test/src/math/smoke/FModTest.h
@@ -18,7 +18,7 @@
#include "hdr/fenv_macros.h"
#define TEST_SPECIAL(x, y, expected, dom_err, expected_exception) \
- LIBC_NAMESPACE::fputil::clear_except(FE_ALL_EXCEPT); \
+ LIBC_NAMESPACE::fputil::clear_except(FE_ALL_EXCEPT); \
EXPECT_FP_EQ(expected, f(x, y)); \
EXPECT_MATH_ERRNO((dom_err) ? EDOM : 0); \
EXPECT_FP_EXCEPTION(expected_exception); \
``````````
</details>
https://github.com/llvm/llvm-project/pull/120808
More information about the libc-commits
mailing list