1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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
This commit is contained in:
NAKAMURA Takumi 2012-08-17 04:15:41 +00:00
parent c90bc7f318
commit f77fb107af

View File

@ -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)