qt5base-lts/tests/auto/corelib/statemachine
Milian Wolff 1e70781e7f Stabilize tst_QStateMachine::dontProcessSlotsWhenMachineIsNotRunning
The test is flaky which was uncovered by the upcoming
QTimer::singleShot optimization patches:

When the Emitter's thread is started and executes the timout functor
before the state machine is started, then the state machine will never
see the emitSignalWithNoArg signal and thus never transition to the
final state and finish.

This patch ensures that the code in the background thread is only run
after the state machine was started to fix this flakyness.

Change-Id: I6f91a2420165662ece75e550a6d73fe098137d4c
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
2019-03-22 19:24:19 +00:00
..
qstate Updated license headers 2016-01-21 18:55:18 +00:00
qstatemachine Stabilize tst_QStateMachine::dontProcessSlotsWhenMachineIsNotRunning 2019-03-22 19:24:19 +00:00
statemachine.pro