[llvm] r375264 - [lit] Reduce value of synthesized timeouts
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 10:59:47 PDT 2019
Author: yln
Date: Fri Oct 18 10:59:46 2019
New Revision: 375264
URL: http://llvm.org/viewvc/llvm-project?rev=375264&view=rev
Log:
[lit] Reduce value of synthesized timeouts
Large timeout values (one year, positive infinity) trip up Python on
Windows with "OverflowError: timeout value is too large". One week
seems to work and is still large enough in practice.
Thanks to Simon Pilgrim for helping me test this.
https://reviews.llvm.org/rL375171
Modified:
llvm/trunk/utils/lit/lit/run.py
Modified: llvm/trunk/utils/lit/lit/run.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/run.py?rev=375264&r1=375263&r2=375264&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/run.py (original)
+++ llvm/trunk/utils/lit/lit/run.py Fri Oct 18 10:59:46 2019
@@ -50,8 +50,9 @@ class Run(object):
self.failure_count = 0
self.hit_max_failures = False
- one_year = 365 * 24 * 60 * 60 # days * hours * minutes * seconds
- timeout = self.timeout or one_year
+ # Larger timeouts (one year, positive infinity) don't work on Windows.
+ one_week = 7 * 24 * 60 * 60 # days * hours * minutes * seconds
+ timeout = self.timeout or one_week
start = time.time()
deadline = start + timeout
More information about the llvm-commits
mailing list