qt5base-lts/tests/auto
Kari Oikarinen a37dd93def Fix crash in tst_QStateMachine::dontProcessSlotsWhenMachineIsNotRunning
The test sometimes ended up with:

  QThread: Destroyed while thread is still running
  Received a fatal error.

This was because as a member variable of the local struct the QThread object was
sometimes destructed before the signal connection quitting it was handled. Fix
that by making sure that the thread is finished before finishing the test.

Also moved connecting to the state machine's signal to be before starting the
machine. Because the counting of QStateMachine::finished signal could hit 1
after the first signal is emitted and the test could pass without the code
working, check that both of the signals have been emitted.

Task-number: QTBUG-66372
Task-number: QTBUG-66216
Change-Id: If14141e39f37541032ddd8c6471daf40a77b0469
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
2018-02-14 08:12:20 +00:00
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data Add binary compatibility files for QtBase for 5.10 2018-01-04 16:26:32 +00:00
cmake CMake: Set SKIP_AUTOMOC/AUTOUIC where needed 2017-11-22 13:51:30 +00:00
compilerwarnings/data Updated license headers 2016-01-21 18:55:18 +00:00
concurrent Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
corelib Fix crash in tst_QStateMachine::dontProcessSlotsWhenMachineIsNotRunning 2018-02-14 08:12:20 +00:00
dbus qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
gui qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
opengl qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
other qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
printsupport Convert features.completer to QT_[REQUIRE_]CONFIG 2017-09-04 11:28:02 +00:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql Make it easier to specify test databases on a per system level 2018-01-26 11:33:07 +00:00
testlib QTestlib/selftests: Refactor the code printing output differences 2018-01-24 14:38:58 +00:00
tools uic: Support id-based translations 2018-01-18 11:31:09 +00:00
widgets qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
xml tst_qxmlsimplereader::inputFromSocket - fix race condition(s) 2017-11-06 19:14:41 +00:00
auto.pro tests/auto/auto.pro: Use correct null device for DBUS check 2017-12-01 09:53:07 +00:00
network-settings.h Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00