[Lldb-commits] [lldb] [lldb-dap] refactor monitor thread in tests (PR #172879)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 5 07:34:55 PST 2026


================
@@ -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)
----------------
JDevlieghere wrote:

The global timeout being the unified DAP timeout, or the per-test lit timeout? 

https://github.com/llvm/llvm-project/pull/172879


More information about the lldb-commits mailing list