(self)
| 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): |
nothing calls this directly
no test coverage detected