[clang-tools-extra] 651ceb1 - [test][clangd] Another try to fix bots after 72142fbac4
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 12 16:14:25 PDT 2022
Author: Vitaly Buka
Date: 2022-09-12T16:14:07-07:00
New Revision: 651ceb1ee7a257225bed1dc78693ff99fae9e571
URL: https://github.com/llvm/llvm-project/commit/651ceb1ee7a257225bed1dc78693ff99fae9e571
DIFF: https://github.com/llvm/llvm-project/commit/651ceb1ee7a257225bed1dc78693ff99fae9e571.diff
LOG: [test][clangd] Another try to fix bots after 72142fbac4
Added:
Modified:
clang-tools-extra/clangd/unittests/HoverTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/HoverTests.cpp b/clang-tools-extra/clangd/unittests/HoverTests.cpp
index d5e3e5fd48df7..a09e19ce9ff7f 100644
--- a/clang-tools-extra/clangd/unittests/HoverTests.cpp
+++ b/clang-tools-extra/clangd/unittests/HoverTests.cpp
@@ -3301,7 +3301,14 @@ TEST(Hover, HideBigInitializers) {
EXPECT_EQ(H->Definition, "int arr[]");
}
-TEST(Hover, GlobalVarEnumeralCastNoCrash) {
+#if defined(__aarch64__)
+// FIXME: AARCH64 sanitizer buildbots are broken after 72142fbac4.
+#define PREDEFINEMACROS_TEST(x) DISABLED_##x
+#else
+#define PREDEFINEMACROS_TEST(x) x
+#endif
+
+TEST(Hover, PREDEFINEMACROS_TEST(GlobalVarEnumeralCastNoCrash)) {
Annotations T(R"cpp(
using uintptr_t = __UINTPTR_TYPE__;
enum Test : uintptr_t {};
@@ -3319,7 +3326,7 @@ TEST(Hover, GlobalVarEnumeralCastNoCrash) {
EXPECT_EQ(*HI->Value, "&global_var");
}
-TEST(Hover, GlobalVarIntCastNoCrash) {
+TEST(Hover, PREDEFINEMACROS_TEST(GlobalVarIntCastNoCrash)) {
Annotations T(R"cpp(
using uintptr_t = __UINTPTR_TYPE__;
unsigned global_var;
More information about the cfe-commits
mailing list