From: Jonas Devlieghere Date: Mon, 23 Nov 2020 23:10:46 +0000 (-0800) Subject: [lldb] Add platform select to TestProcessConnect.py X-Git-Tag: llvmorg-13-init~5297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b20f3cc5b560ae15a8f9018eb96d65e6f5e125d1;p=platform%2Fupstream%2Fllvm.git [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. --- 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,