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

Method test_thread

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

Source from the content-addressed store, hash-verified

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':

Callers

nothing calls this directly

Calls 6

launch_and_waitMethod · 0.95
goMethod · 0.95
pause_and_waitMethod · 0.95
quit_and_waitMethod · 0.95
DebuggerControllerClass · 0.90
name_to_fpathFunction · 0.85

Tested by

no test coverage detected