[llvm-branch-commits] [lldb] b20f3cc - [lldb] Add platform select to TestProcessConnect.py

Jonas Devlieghere via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 24 15:40:45 PST 2020


Author: Jonas Devlieghere
Date: 2020-11-23T18:02:00-08:00
New Revision: b20f3cc5b560ae15a8f9018eb96d65e6f5e125d1

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

LOG: [lldb] Add platform select to TestProcessConnect.py

Extend TestProcessConnect to cover the scenario fixed by
6c0cd5676e0a0feaf836e0399023a6e21224467b. This replaces
command-process-connect.test which would fail if port 4321
was open.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py b/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py
index c2d06ad5d67e..80b83fbe2919 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py
@@ -38,6 +38,8 @@ def test_process_connect_sync(self):
         """Test the gdb-remote command in synchronous mode"""
         try:
             self.dbg.SetAsync(False)
+            self.expect("platform select remote-gdb-server",
+                        substrs=['Platform: remote-gdb-server', 'Connected: no'])
             self.expect("process connect connect://" +
                         self.server.get_connect_address(),
                         substrs=['Process', 'stopped'])
@@ -50,6 +52,8 @@ def test_process_connect_async(self):
         """Test the gdb-remote command in asynchronous mode"""
         try:
             self.dbg.SetAsync(True)
+            self.expect("platform select remote-gdb-server",
+                        substrs=['Platform: remote-gdb-server', 'Connected: no'])
             self.expect("process connect connect://" +
                         self.server.get_connect_address(),
                         matching=False,


        


More information about the llvm-branch-commits mailing list