Fix tst_qthreadpool under high load.
authorDavid Faure <david.faure@kdab.com>
Thu, 13 Mar 2014 20:14:35 +0000 (21:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 14 Mar 2014 21:38:49 +0000 (22:38 +0100)
commitc4650779c41780f675a33025d09707c15055dda9
tree597e18d046467ab0e733a80c6304e6cd5fca6d6a
parentb14e4eb5f0a74e00be678c82d9e552b9e26ad91f
Fix tst_qthreadpool under high load.

The tasks might not have run yet at the time of the QCOMPARE, so we need
to acquire on the semaphore in order to ensure that this is the case,
just like in the previous testcase.

Change-Id: I1da72bb07c2f53760b3bf912fc26aaf10ed18d48
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tests/auto/corelib/thread/qthreadpool/tst_qthreadpool.cpp