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

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


Author: lntue
Date: 2024-10-02T14:29:56-04:00
New Revision: 7a0a5246532a5536346d34518e5936a6ff4f4077

URL: https://github.com/llvm/llvm-project/commit/7a0a5246532a5536346d34518e5936a6ff4f4077
DIFF: https://github.com/llvm/llvm-project/commit/7a0a5246532a5536346d34518e5936a6ff4f4077.diff

LOG: [libc] Fix iscanonical test on aarch64 and riscv64. (#110907)

Added: 
    

Modified: 
    libc/test/src/math/smoke/iscanonical_test.cpp

Removed: 
    


################################################################################
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)


        


More information about the libc-commits mailing list