diff options
| author | Reid Kleckner <rnk@google.com> | 2017-04-06 00:38:28 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-04-06 00:38:28 +0000 |
| commit | 578c36d952fb19fe17d44139796e127207baf451 (patch) | |
| tree | 62994d8a563f8436418f01134f6facedba40063b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 7e94d3837463f261332b725febcebaa84d42abab (diff) | |
[lit] Implement timeouts and max_time for process pool testing
This is necessary to pass the lit test suite at llvm/utils/lit/tests.
There are some pre-existing failures here, but now switching to pools
doesn't regress any tests.
I had to change test-data/lit.cfg to import DummyConfig from a module to
fix pickling problems, but I think it'll be OK if we require test
formats to be written in real .py modules outside lit.cfg files.
I also discovered that in some circumstances AsyncResult.wait() will not
raise KeyboardInterrupt in a timely manner, but you can pass a non-zero
timeout to work around this. This makes threading.Condition.wait use a
polling loop that runs through the interpreter, so it's capable of
asynchronously raising KeyboardInterrupt.
llvm-svn: 299605
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
