testsuite timeout doesn't kill subprocesses on Windows
The timeout program doesn't kill subprocesses on Windows, which means for example that if GHCi hangs, timeout only kills ghc-inplace and not the GHC binary itself. The hung GHC process prevents the build tree from being removed, and stops future buildbots from running.
I just came across this Python code which allegedly does both timeout and subprocess-killing on Windows:
http://benjamin.smedbergs.us/blog/2006-12-11/killableprocesspy/
This could be either used directly (it's Mozilla-licensed) or we could adapt the idea for our timeout program.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Test Suite |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |