(self)
| 236 | |
| 237 | # @unittest.skip |
| 238 | def test_thread(self): |
| 239 | fpath = name_to_fpath('helloworld_thread', self.arch) |
| 240 | bv = load(fpath) |
| 241 | dbg = DebuggerController(bv) |
| 242 | self.assertNotIn(dbg.launch_and_wait(), [DebugStopReason.ProcessExited, DebugStopReason.InternalError]) |
| 243 | |
| 244 | dbg.go() |
| 245 | time.sleep(1) |
| 246 | dbg.pause_and_wait() |
| 247 | |
| 248 | # print('switching to bad thread') |
| 249 | # self.assertFalse(dbg.thread_select(999)) |
| 250 | |
| 251 | threads = dbg.threads |
| 252 | self.assertGreater(len(threads), 1) |
| 253 | |
| 254 | dbg.go() |
| 255 | time.sleep(1) |
| 256 | dbg.pause_and_wait() |
| 257 | |
| 258 | threads = dbg.threads |
| 259 | self.assertGreater(len(threads), 1) |
| 260 | dbg.quit_and_wait() |
| 261 | |
| 262 | def test_assembly_code(self): |
| 263 | if self.arch == 'x86_64': |
nothing calls this directly
no test coverage detected