summaryrefslogtreecommitdiffstats
path: root/src/printsupport/dialogs
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-09-03 15:05:48 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-09-03 20:45:00 +0200
commit225cc6095499dca17054f969b47f6d0bab95d5cd (patch)
treeeebd0d7605c0a9090213800db481c384fff15f6e /src/printsupport/dialogs
parent85b0335c419118629b05b7c8891b844387382700 (diff)
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>
Diffstat (limited to 'src/printsupport/dialogs')
0 files changed, 0 insertions, 0 deletions