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

Method test_exception_divzero

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

Source from the content-addressed store, hash-verified

141 self.assertEqual(reason, DebugStopReason.Calculation)
142
143 def test_exception_divzero(self):
144 fpath = name_to_fpath('do_exception', self.arch)
145 bv = load(fpath)
146 dbg = DebuggerController(bv)
147 if not self.arch == 'arm64':
148 dbg.cmd_line = 'divzero'
149 self.assertNotIn(dbg.launch_and_wait(), [DebugStopReason.ProcessExited, DebugStopReason.InternalError])
150 reason = dbg.go_and_wait()
151 self.expect_divide_by_zero(reason)
152 dbg.quit_and_wait()
153
154 def test_step_into(self):
155 fpath = name_to_fpath('helloworld', self.arch)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected