qt5base-lts/tests/auto
Jarek Kobus 225cc60954 Fix flaky QFutureWatcher::startFinish() test
Since waiting for a spy employs polling, it may happen
that while waiting for a startedSpy we had received already
a signal for finishedSpy. This explains current flakiness.

The fix is to connect to lambdas instead and update
the hit count accordingly. Inside lambdas we also
ensure the correct order for started / finised signals.

After waitForFinished() unblocks we ensure that possible
pending asynchronous signals (started / finished) are processed
and check the final state.

Task-number: QTBUG-83076
Change-Id: I16963ef9c011cb613d7b409d3e3032303a942336
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-09-03 20:45:00 +02:00
..
cmake CMake: Fix configuration of CMake tests in-build-tree 2020-07-20 18:12:23 +02:00
concurrent QtConcurrent: Introduce runWithPromise() 2020-08-19 12:46:10 +02:00
corelib Fix flaky QFutureWatcher::startFinish() test 2020-09-03 20:45:00 +02:00
dbus Deprecate the static int based API in QMetaType 2020-08-24 00:19:05 +02:00
gui Extend test blacklisting from Ubuntu 18.04 to 20.04 2020-09-03 14:30:04 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Extend test blacklisting from Ubuntu 18.04 to 20.04 2020-09-03 14:30:04 +02:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other pro2cmake: Fix qmake parser's line continuation handling 2020-09-02 23:44:15 +02:00
printsupport Qpagedpaintdevice: Use marginsF instead of internal struct margins 2020-09-01 04:57:48 +08:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql QSqlite: Don't crash after binding too many placeholders 2020-08-24 13:50:55 +02:00
testlib Remove QVariant(int type, void *data, ...) constructor 2020-08-15 10:56:29 +02:00
tools Ignore weight in .ui files instead of converting it 2020-09-03 07:31:45 +02:00
widgets Extend test blacklisting from Ubuntu 18.04 to 20.04 2020-09-03 14:30:04 +02:00
xml Disable deprecation warnings in some tests 2020-07-29 14:33:23 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
auto.pro CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
CMakeLists.txt CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00