tst_QThreadPool::tryStartCount(): Wait until tasks have finished.
Replace hardcoded interval by QTRY_COMPARE() ensuring that all tasks have finished, since otherwise QThreadPool::tryStart() fails in the next run. Remove blacklisting for MSVC2012 since it is not compiler-specific. Task-number: QTBUG-49654 Change-Id: If49b6eb9ef4da4ba2911839166c397d84c175e00 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
This commit is contained in:
parent
28beaf63cd
commit
45f7512bf5
@ -1,5 +1,2 @@
|
||||
[expiryTimeoutRace]
|
||||
osx
|
||||
[tryStartCount]
|
||||
windows msvc-2012
|
||||
linux
|
||||
|
@ -821,7 +821,7 @@ void tst_QThreadPool::tryStartCount()
|
||||
++count;
|
||||
QCOMPARE(count, QThread::idealThreadCount());
|
||||
|
||||
QTest::qWait(100);
|
||||
QTRY_COMPARE(threadPool.activeThreadCount(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user