qt5base-lts/tests/auto/corelib
Sona Kurazyan 76a1c060ac Always cancel unfinished QPromises on destruction
If the QPromise is being destroyed, we should signal the associated
futures to stop waiting. No matter in which state the promise is, if
it's not finished, we should always cancel to avoid infinite waits.
This is also what docs state:

"The promise implicitly transitions to a canceled state on destruction
unless finish() is called beforehand by the user."

Fixes: QTBUG-101284
Pick-to: 6.3 6.2
Change-Id: I65ebfefe03b79b41afacda78a4f49938c54d8b37
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2022-03-25 08:05:12 +01:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
io CI: Add docker support for tst_qiodevice test 2022-03-24 22:09:43 +02:00
itemmodels Fix test to pass with QT_FORCE_ASSERTS 2022-02-18 18:55:38 +01:00
kernel QProperty: Allow manual scheduling of binding notification 2022-03-21 20:41:23 +01:00
mimetypes Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Add VERBATIM option to add_custom_command calls 2022-03-17 15:15:06 +01:00
serialization CI: Add docker support for tst_qtextstream test 2022-03-24 22:09:43 +02:00
text QAnyStringView: constexpr detect 8-bit ASCII as Latin 1 2022-03-21 20:36:23 +01:00
thread Always cancel unfinished QPromises on destruction 2022-03-25 08:05:12 +01:00
time Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
tools Fix compiler warnings in tests 2022-03-24 13:23:16 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00