[Lldb-commits] [lldb] [lldb-dap] Fix TestDap_attach.py flakiness	(PR #137278)
    David Peixotto via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Fri Apr 25 11:37:38 PDT 2025
    
    
  
================
@@ -374,6 +374,15 @@ def wait_for_event(self, filter=None, timeout=None):
             )
         return None
 
+    def wait_for_events(self, events, timeout=None):
+        """Wait for a list of events in `events` in any order.
+        Return the events not hit before the timeout expired"""
+        events = events[:]  # Make a copy to avoid modifying the input
+        while events:
+            event = self.wait_for_event(filter=events, timeout=timeout)
+            events.remove(event["event"])
----------------
dmpots wrote:
Ah yeah it looks like its not handling the timeout correctly.
https://github.com/llvm/llvm-project/pull/137278
    
    
More information about the lldb-commits
mailing list