[Lldb-commits] [lldb] [lldb] Run TestDenyAttach only with locally built debug server (PR #216399)

Augusto Noronha via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 14 14:12:15 PDT 2026


https://github.com/augusto2112 updated https://github.com/llvm/llvm-project/pull/216399

>From 8c4343df93ebbe4b6ec3100f663f76b29756fdff Mon Sep 17 00:00:00 2001
From: Augusto Noronha <anoronha at apple.com>
Date: Fri, 14 Aug 2026 14:11:58 -0700
Subject: [PATCH] [lldb] Run TestDenyAttach only with locally built debug
 server

The PT_DENY_ATTACH handling is in debugserver, so a system debugserver still reports lost connection. Added @skipIfOutOfTreeDebugserver
---
 lldb/test/API/macosx/deny-attach/TestDenyAttach.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/test/API/macosx/deny-attach/TestDenyAttach.py b/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
index 1abf5cb678378..6298a03777203 100644
--- a/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
+++ b/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
@@ -11,6 +11,7 @@ class DenyAttachTestCase(TestBase):
     @requireDarwin
     @skipIfDarwinEmbedded  # PT_DENY_ATTACH attach behavior differs on ios/tvos/etc
     @skipIfAsan  # Attach tests time out inconsistently under asan.
+    @skipIfOutOfTreeDebugserver
     def test_attach_to_deny_attach_process(self):
         """Attaching to a PT_DENY_ATTACH process reports an error, not a crash."""
         self.build()



More information about the lldb-commits mailing list