Reland "[lit] Synthesize artificial deadline"
commitec36eeaa5cf62937c74dd383d07d55f0c67d7264
authorJulian Lettner <jlettner@apple.com>
Thu, 17 Oct 2019 20:22:32 +0000 (17 20:22 +0000)
committerJulian Lettner <jlettner@apple.com>
Thu, 17 Oct 2019 20:22:32 +0000 (17 20:22 +0000)
tree9e690fd6277eeafb6ada4ef852a1cba8127b9176
parent8c2e05f1acc3cf760b20bacecf4e6e595f097895
Reland "[lit] Synthesize artificial deadline"

We always want to use a deadline when calling `result.await`.  Let's
synthesize an artificial deadline (now plus one year) to simplify code
and do less busy waiting.

Thanks to Reid Kleckner for diagnosing that a deadline for of "positive
infinity" does not work with Python 3 anymore.  See commit:
4ff1e34b606d9a9fcfd8b8b5449a558315af94e5

I tested this patch with Python 2 and Python 3.

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