MCPcopy Create free account
hub / github.com/Vector35/debugger / test_exception_segfault

Method test_exception_segfault

test/debugger_test.py:108–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.assertEqual(reason, DebugStopReason.AccessViolation)
107
108 def test_exception_segfault(self):
109 fpath = name_to_fpath('do_exception', self.arch)
110 bv = load(fpath)
111 dbg = DebuggerController(bv)
112
113 dbg.cmd_line = 'segfault'
114 self.assertNotIn(dbg.launch_and_wait(), [DebugStopReason.ProcessExited, DebugStopReason.InternalError])
115 # time.sleep(1)
116 reason = dbg.go_and_wait()
117 self.expect_segfault(reason)
118 dbg.quit_and_wait()
119
120 # # This would not work until we fix the test binary
121 # def test_exception_illegalinstr(self):

Callers

nothing calls this directly

Calls 6

launch_and_waitMethod · 0.95
go_and_waitMethod · 0.95
expect_segfaultMethod · 0.95
quit_and_waitMethod · 0.95
DebuggerControllerClass · 0.90
name_to_fpathFunction · 0.85

Tested by

no test coverage detected