[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:19:53 PDT 2024
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/110907
None
>From d5433c04a150ea236dc1284d800496882b1f4c11 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Wed, 2 Oct 2024 18:17:46 +0000
Subject: [PATCH] [libc] Fix iscanonical test on aarch64 and riscv64.
---
libc/test/src/math/smoke/iscanonical_test.cpp | 4 ++++
1 file changed, 4 insertions(+)
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