Improved stability of tst_qstatemachine, mark as parallel-safe
authorRohan McGovern <rohan.mcgovern@nokia.com>
Thu, 31 May 2012 02:47:32 +0000 (12:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 31 May 2012 03:37:25 +0000 (05:37 +0200)
commitc09b5f5ad869e97f0b1eac93ca79d472a0405294
tree831decc4cf5596d56725cb3a33287f3ef628f617
parentaf8fa2794b4d1580ad69ac7de40761634cb0fa39
Improved stability of tst_qstatemachine, mark as parallel-safe

tst_QStateMachine::postEventFromOtherThread() assumed that 10,000
iterations of the event loop in a separate thread could always be
completed successfully within the default QTRY_COMPARE timeout.
This may be false if the CPU load is already high - such as when running
other tests concurrently.

Decrease the iteration count.

Change-Id: I780523f73c0c16fa0b2ab3201b2b0affdebc198d
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
tests/auto/corelib/statemachine/qstatemachine/qstatemachine.pro
tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp