[Lldb-commits] [lldb] e186d62 - [lldb][test] Don't invoke attach in TestProgressReporting.py (#232722)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 19 02:48:14 PDT 2026
Author: Raphael Isemann
Date: 2026-10-19T10:48:09+01:00
New Revision: e186d626d32893c28c955bc53ce1fa0257f917c9
URL: https://github.com/llvm/llvm-project/commit/e186d626d32893c28c955bc53ce1fa0257f917c9
DIFF: https://github.com/llvm/llvm-project/commit/e186d626d32893c28c955bc53ce1fa0257f917c9.diff
LOG: [lldb][test] Don't invoke attach in TestProgressReporting.py (#232722)
Trying to attach to a process that doesn't exist hangs in a remote test
setup. This patch changes so we just call `Attach` with an invalid
`SBAttachInfo` which triggers the same event and should immediately
return.
Added:
Modified:
lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py b/lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py
index 0f908f9b920a1..0476f347f6912 100644
--- a/lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py
+++ b/lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py
@@ -16,7 +16,6 @@ def setUp(self):
self.broadcaster, lldb.SBDebugger.eBroadcastBitProgress
)
- @skipIf(remote=True, bugnumber="github.com/llvm/llvm-project/issues/232431")
def test_wait_attach_progress_reporting(self):
"""Test that progress reports for wait attaching work as intended."""
target = self.dbg.CreateTarget(None)
@@ -25,12 +24,9 @@ def test_wait_attach_progress_reporting(self):
# trying to attach, but it's not going to be the event picked
# up by checking with fetch_next_event, so go through all emitted
# progress events and check that the waiting to attach one was emitted at all.
- target.AttachToProcessWithName(
- self.listener,
- "wait-attach-progress-report",
- False,
- lldb.SBError(),
- )
+ error = lldb.SBError()
+ target.Attach(lldb.SBAttachInfo(), error)
+ self.assertTrue(error.Fail())
event = lldb.SBEvent()
events = []
while self.listener.GetNextEventForBroadcaster(self.broadcaster, event):
More information about the lldb-commits
mailing list