MCPcopy Create free account
hub / github.com/nodejs/node / test_kill

Method test_kill

deps/v8/test/debugging/wasm/gdb-server/connect.py:34–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 gdb_rsp.KillProcess(process)
33
34 def test_kill(self):
35 process = gdb_rsp.PopenDebugStub(COMMAND)
36 try:
37 connection = gdb_rsp.GdbRspConnection()
38 # Request killing the target.
39 reply = connection.RspRequest('k')
40 self.assertEqual(reply, 'OK')
41 signal = c_byte(process.wait()).value
42 self.assertEqual(signal, gdb_rsp.RETURNCODE_KILL)
43 finally:
44 gdb_rsp.KillProcess(process)
45
46 def test_detach(self):
47 process = gdb_rsp.PopenDebugStub(COMMAND)

Callers

nothing calls this directly

Calls 2

RspRequestMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected