| 1570 | results = [] |
| 1571 | |
| 1572 | def kill_proc_timer_thread(): |
| 1573 | results.append(('thread-start-poll-result', proc.poll())) |
| 1574 | # terminate it from the thread and wait for the result. |
| 1575 | proc.kill() |
| 1576 | proc.wait() |
| 1577 | results.append(('thread-after-kill-and-wait', proc.returncode)) |
| 1578 | # this wait should be a no-op given the above. |
| 1579 | proc.wait() |
| 1580 | results.append(('thread-after-second-wait', proc.returncode)) |
| 1581 | |
| 1582 | # This is a timing sensitive test, the failure mode is |
| 1583 | # triggered when both the main thread and this thread are in |