File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lldb/test/API/functionalities/gdb_remote_client Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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" ])
You can’t perform that action at this time.
0 commit comments