Lines Matching full:thread
14 def check_interrupt(thread): argument
16 Check that, if thread is resumed, we go back to the same thread when the
20 # Switch to the thread we're going to be running the test in.
21 print("thread ", thread.num)
22 gdb.execute("thr %d" % thread.num)
24 # Enter the loop() function on this thread.
40 # Check whether the thread we're in after the interruption is the same we
42 return (thread.num == gdb.selected_thread().num)
47 Test if interrupting the code always lands us on the same thread when
51 print("SKIP: set to run on a single thread")
55 for thread in gdb.selected_inferior().threads():
56 report(check_interrupt(thread),
57 "thread %d resumes correctly on interrupt" % thread.num)