[lldb] Add platform select to TestProcessConnect.py

Extend TestProcessConnect to cover the scenario fixed by
6c0cd5676e. This replaces
command-process-connect.test which would fail if port 4321
was open.
This commit is contained in:
Jonas Devlieghere 2020-11-23 15:10:46 -08:00
parent 53310ae708
commit b20f3cc5b5
1 changed files with 4 additions and 0 deletions

View File

@ -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,