summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-08-17 04:15:41 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-08-17 04:15:41 +0000
commitab6151d6c4d753728a02ed9db8273c4e45533178 (patch)
tree7b525d02e7ad322891cca891be3e4362639adaf4 /llvm/utils/lit
parent43b550f7fee099f126010f60243f4ac48ae3af14 (diff)
downloadbcm5719-llvm-ab6151d6c4d753728a02ed9db8273c4e45533178.tar.gz
bcm5719-llvm-ab6151d6c4d753728a02ed9db8273c4e45533178.zip
lit: Show actually created count of threads. The incorrect threads count is printed if the number of tests are less than the number of default threads.
Thanks to Vinson Lee, reported in PR13620. llvm-svn: 162078
Diffstat (limited to 'llvm/utils/lit')
-rwxr-xr-xllvm/utils/lit/lit/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py
index 039868da786..25bbcbd9f27 100755
--- a/llvm/utils/lit/lit/main.py
+++ b/llvm/utils/lit/lit/main.py
@@ -566,6 +566,9 @@ def main(builtinParameters = {}): # Bump the GIL check interval, its more imp
if opts.maxTests is not None:
tests = tests[:opts.maxTests]
+ # Don't create more threads than tests.
+ opts.numThreads = min(len(tests), opts.numThreads)
+
extra = ''
if len(tests) != numTotalTests:
extra = ' of %d' % numTotalTests
@@ -589,9 +592,6 @@ def main(builtinParameters = {}): # Bump the GIL check interval, its more imp
else:
print header
- # Don't create more threads than tests.
- opts.numThreads = min(len(tests), opts.numThreads)
-
startTime = time.time()
display = TestingProgressDisplay(opts, len(tests), progressBar)
provider = TestProvider(tests, opts.maxTime)
OpenPOWER on IntegriCloud