summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index 69fa4e0d47b..ac627d51c1c 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -1119,7 +1119,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
codeStr = str(result.exitCode)
out += "error: command failed with exit status: %s\n" % (
codeStr,)
- if litConfig.maxIndividualTestTime > 0:
+ if litConfig.maxIndividualTestTime > 0 and result.timeoutReached:
out += 'error: command reached timeout: %s\n' % (
str(result.timeoutReached),)
OpenPOWER on IntegriCloud