[Lldb-commits] [lldb] [lldb-dap] refactor monitor thread in tests (PR #172879)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 19 03:38:56 PST 2025
================
@@ -27,20 +27,25 @@ def spawn(self, args):
def spawn_and_wait(self, program, delay):
time.sleep(delay)
self.spawn([program])
- self.process.wait()
+ proc = self.target_process
+ # Wait for either the process to exit or the event to be set
+ while proc.poll() is None and not self.spawn_event.is_set():
+ time.sleep(0.1)
----------------
charles-zablit wrote:
This should be fine, the global timeout takes over.
https://github.com/llvm/llvm-project/pull/172879
More information about the lldb-commits
mailing list