[libc-commits] [libc] [libc] Fix iscanonical test on aarch64 and riscv64. (PR #110907)

via libc-commits libc-commits at lists.llvm.org
Wed Oct 2 11:20:32 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (lntue)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/110907.diff


1 Files Affected:

- (modified) libc/test/src/math/smoke/iscanonical_test.cpp (+4) 


``````````diff
diff --git a/libc/test/src/math/smoke/iscanonical_test.cpp b/libc/test/src/math/smoke/iscanonical_test.cpp
index 2dd1c2ac6f0451..8e8b3e4308f887 100644
--- a/libc/test/src/math/smoke/iscanonical_test.cpp
+++ b/libc/test/src/math/smoke/iscanonical_test.cpp
@@ -8,6 +8,10 @@
 
 #include "IsCanonicalTest.h"
 
+// The testing framework might include math.h and iscanonical macro definition
+// in overlay mode.
+#undef iscanonical
+
 #include "src/math/iscanonical.h"
 
 LIST_ISCANONICAL_TESTS(double, LIBC_NAMESPACE::iscanonical)

``````````

</details>


https://github.com/llvm/llvm-project/pull/110907


More information about the libc-commits mailing list