[Lldb-commits] [lldb] 7aadeca - [lldb] [test] Add synchronization to TestContinue

Michał Górny via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 19 06:50:08 PDT 2022


Author: Michał Górny
Date: 2022-08-19T15:49:35+02:00
New Revision: 7aadecae404b8d47aabdd874e9018a76fd4d1ffa

URL: https://github.com/llvm/llvm-project/commit/7aadecae404b8d47aabdd874e9018a76fd4d1ffa
DIFF: https://github.com/llvm/llvm-project/commit/7aadecae404b8d47aabdd874e9018a76fd4d1ffa.diff

LOG: [lldb] [test] Add synchronization to TestContinue

Sponsored by: The FreeBSD Foundation

Added: 
    

Modified: 
    lldb/test/API/functionalities/gdb_remote_client/TestContinue.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/gdb_remote_client/TestContinue.py b/lldb/test/API/functionalities/gdb_remote_client/TestContinue.py
index f0f0df81d321d..8d26cfbfdcc4e 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestContinue.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestContinue.py
@@ -38,6 +38,8 @@ def qfThreadInfo(self):
         self.runCmd("platform select remote-linux")
         target = self.createTarget("a.yaml")
         process = self.connect(target)
+        lldbutil.expect_state_changes(self, self.dbg.GetListener(), process,
+                                      [lldb.eStateExited])
         self.assertPacketLogContains(["vCont;C13:401"])
 
     def test_continue_no_vCont(self):
@@ -55,6 +57,8 @@ def other(self, packet):
         self.runCmd("platform select remote-linux")
         target = self.createTarget("a.yaml")
         process = self.connect(target)
+        lldbutil.expect_state_changes(self, self.dbg.GetListener(), process,
+                                      [lldb.eStateExited])
         self.assertPacketLogContains(["Hc401", "C13"])
 
     def test_continue_multiprocess(self):
@@ -65,4 +69,6 @@ class MyResponder(self.BaseResponder):
         self.runCmd("platform select remote-linux")
         target = self.createTarget("a.yaml")
         process = self.connect(target)
+        lldbutil.expect_state_changes(self, self.dbg.GetListener(), process,
+                                      [lldb.eStateExited])
         self.assertPacketLogContains(["vCont;C13:p400.401"])


        


More information about the lldb-commits mailing list