[Lldb-commits] [lldb] [lldb] Disable arm64e tests under ASan (PR #189052)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 27 09:43:39 PDT 2026
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/189052
Technically ASan is supported, but we need an arm64e sanitizer runtime. It's still enabled when the whole test suite runs as arm64e, assuming that you need arm64e runtimes regardless.
>From 431516a91ac27de73386bd69cacf5acf29d5fbf8 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Thu, 26 Mar 2026 14:33:51 -0700
Subject: [PATCH] [lldb] Disable arm64e tests under ASan
Technically ASan is supported, but we need an arm64e sanitizer runtime.
It's still enabled when the whole test suite runs as arm64e, assuming
that you need arm64e runtimes regardless.
---
lldb/packages/Python/lldbsuite/test/decorators.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 02c30f96d85c5..8fd38c62f7b16 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -1196,6 +1196,7 @@ def does_compiler_support_flag():
return skipTestIfFn(does_compiler_support_flag)
+
def skipIfAsan(func):
"""Skip this test if the environment is set up to run LLDB *itself* under ASAN."""
return skipTestIfFn(is_running_under_asan)(func)
@@ -1345,6 +1346,12 @@ def can_build_and_run_arm64e():
if not configuration.arm64e_debugserver:
return "debugserver not built with arm64e support"
+ # Technically ASan is supported, but we need an arm64e sanitizer
+ # runtime and we assume that's not the case unless we run the whole
+ # test suite as arm64e.
+ if is_running_under_asan():
+ return "Sanitizer runtime may not support arm64e"
+
return None
return skipTestIfFn(can_build_and_run_arm64e)(func)
More information about the lldb-commits
mailing list