Speed up tst_QWaitCondition
Reduce the thread and iteration counts to make this test execute faster. This change reduces the runtime to 14 seconds (from 5 minutes, 38 seconds). Change-Id: Id5ea056cfd33022da5a06809f0598a5cdb02b27b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
b164911b7f
commit
2e18c16e59
@ -59,14 +59,8 @@ private slots:
|
||||
void wait_RaceCondition();
|
||||
};
|
||||
|
||||
static const int iterations = 10;
|
||||
|
||||
// Note: some tests rely on ThreadCount being multiple of 2
|
||||
#if defined(Q_OS_SOLARIS) || ( defined(Q_OS_LINUX) && defined(Q_PROCESSOR_ARM) )
|
||||
static const int iterations = 4;
|
||||
static const int ThreadCount = 4;
|
||||
#else
|
||||
static const int ThreadCount = 10;
|
||||
#endif
|
||||
|
||||
class wait_QMutex_Thread_1 : public QThread
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user