From b20f3cc5b560ae15a8f9018eb96d65e6f5e125d1 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 23 Nov 2020 15:10:46 -0800 Subject: [PATCH] [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. --- lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py b/lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py index c2d06ad5..80b83fb 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 @@ class TestProcessConnect(GDBRemoteTestBase): """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 @@ class TestProcessConnect(GDBRemoteTestBase): """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, -- 2.7.4