Skip to content

[libc] Fix iscanonical test on aarch64 and riscv64. #110907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

lntue
Copy link
Contributor

@lntue lntue commented Oct 2, 2024

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Oct 2, 2024

@llvm/pr-subscribers-libc

Author: None (lntue)

Changes

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

@lntue lntue merged commit 7a0a524 into llvm:main Oct 2, 2024
7 of 8 checks passed
@lntue lntue deleted the iscanonical branch October 2, 2024 18:30
Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants