Skip to content

Commit 2be1492

Browse files
committed
Make sure we don't get a k(ill) packet
1 parent 322315b commit 2be1492

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lldb/test/API/functionalities/gdb_remote_client/TestConnectRemoteDetach.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ def cont(self):
3737
return "T05thread:1;"
3838

3939
def D(self):
40-
# Detach packet - this is what we want to verify gets called
40+
# Detach packet: this is what we want to verify gets called.
4141
return "OK"
4242

43+
def k(self):
44+
# Kill packet: this is what we want to verify doesn't get called.
45+
raise RuntimeError("should not receive k(ill) packet")
46+
4347
def test_connect_remote_sets_detach(self):
4448
"""Test that ConnectRemote to a stopped process sets ShouldDetach."""
4549
self.server.responder = self.StoppedResponder()
@@ -59,6 +63,5 @@ def test_connect_remote_sets_detach(self):
5963
# rather than a 'k' (kill) packet when the process is destroyed.
6064
process.Destroy()
6165

62-
# Verify that the detach packet was sent
63-
# The 'D' packet is the detach command in GDB remote protocol
66+
# Verify that the (D)etach packet was sent.
6467
self.assertPacketLogReceived(["D"])

0 commit comments

Comments
 (0)