Reland "[lit] Synthesize artificial deadline"
authorJulian Lettner <jlettner@apple.com>
Thu, 17 Oct 2019 20:22:32 +0000 (20:22 +0000)
committerJulian Lettner <jlettner@apple.com>
Thu, 17 Oct 2019 20:22:32 +0000 (20:22 +0000)
commit2ca8e27bd038673b514c8452d661a413ce0d2123
treecca1c57375f8d7d75aa525b7f38ea4fd6b459906
parent54017d0f526391a88e5e250a4bbc7a8ea77fa902
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.

llvm-svn: 375165
llvm/utils/lit/lit/run.py