summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2012-02-16 09:47:32 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-20 00:21:00 +0100
commit2e18c16e59c535ee9907a6ccd1ca2fe5a4da8455 (patch)
treeb4a1632a02cd973e9d84560589d88e5e49cb0f0b
parentb164911b7f0efd81ec33325405b88bff8b2334d0 (diff)
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>
-rw-r--r--tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp b/tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp
index 73cb8e9cd6..0e1fa47a3e 100644
--- a/tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp
+++ b/tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp
@@ -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
{