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