qt5base-lts/tests/auto/corelib
Sona Kurazyan f2f5c7d2b7 QtFuture::connect: fix for signals with a single std::tuple argument
If the signal passed to QtFuture::connect() takes multiple arguments,
we need to wrap the arguments in a std::tuple when reporting the result.
To detect this case we were checking if the result type of a QFuture
returned by QtFuture::connect() is a std::tuple, but this was not
correct: the result type could be a std::tuple also if the passed
signal takes a single std::tuple argument. Instead, check if the signal
takes more than one argument.

As a drive-by modified the tst_QFuture::signalConnect to use const
values for tuples used in multiple test-cases, to avoid repetition.

Fixes: QTBUG-100071
Pick-to: 6.2 6.3
Change-Id: I1ce39cf87028f36ef94a9d1a4423b0c51473afd4
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2022-01-31 17:40:43 +01:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Fix tst_qfloat16 run time error for INTEGRITY (tested on sa8115) 2022-01-30 00:02:38 +00:00
io Blacklist tst_QFileSystemWatcher::signalsEmittedAfterFileMoved on all Windows versions 2022-01-31 17:39:33 +01:00
itemmodels tst_QItemModel: fix memleaks 2022-01-05 08:22:00 +01:00
kernel tst_QMetaType: remove call to pthread_yield() 2022-01-19 20:57:19 -08:00
mimetypes Remove unused .qrc files 2022-01-17 23:17:01 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QFactoryLoader: add setExtraSearchPath() (for QPA plugins' use) 2022-01-20 15:53:48 -08:00
serialization JSON: Further improve the duplicate handling in the parser 2022-01-21 00:53:49 +01:00
text QByteArray: fix isUpper/isLower 2022-01-25 15:29:20 +01:00
thread QtFuture::connect: fix for signals with a single std::tuple argument 2022-01-31 17:40:43 +01:00
time Use Q_INT64_C() to express qint64 constants 2022-01-21 21:45:11 +01:00
tools QFlatMap: fix is_transparent detection 2022-01-30 10:11:46 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00