lit: Support cancellation on Windows
authorNico Rieck <nico.rieck@gmail.com>
Fri, 19 Jul 2013 17:08:08 +0000 (17:08 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Fri, 19 Jul 2013 17:08:08 +0000 (17:08 +0000)
commitba460864440b4dd192bd2809f913babe0cf07031
tree55228c7d4655c97516f870579ee81f30f2450fe0
parent55dcefbc4006204c0d2816d5a7c921517c53383c
lit: Support cancellation on Windows

The current machinery using KeyboardInterrupt for canceling doesn't work
with multiple threads on Windows as it just cancels the currently run tests
but the runners continue.

We install a handler for Ctrl-C which stops the provider from providing any
more tests to the runners. Together with aborting all currently running
tests, this brings lit to a halt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186695 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/main.py