forked from OSchip/llvm-project
[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:
parent
53310ae708
commit
b20f3cc5b5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue