qt5base-lts/tests/auto/other
Volker Hilsheimer 58afdea1b3 tst_Gestures: Don't accumulate global state
(Un)Register the custom recognize in init() and cleanup() instead of
initTestCase() and cleanupTestCase(), so that a new recognizer is used
for each test function.

In the test functions, use a scope guard to unregister the locally
registered recognizers to make sure that in the case of a failing test
and early return, the recognizer is removed.

Pick-to: 6.5 6.4 6.2
Change-Id: I4fe9509f35474514ef55191d799e6707199fe853
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2023-01-09 19:37:53 +00:00
..
gestures tst_Gestures: Don't accumulate global state 2023-01-09 19:37:53 +00:00
languagechange Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
macgui Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
macnativeevents QtBase tests: remove QT_DISABLE_DEPRECATED_UP_TO defines 2022-08-24 22:08:49 +02:00
macplist Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
networkselftest Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qabstractitemmodelutils Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaccessibility Blacklist the QAccessibility::focusChild test on the wayland platform 2023-01-04 18:38:00 +01:00
qaccessibilitylinux a11y: support GetAccessibleId for at-spi 2022-10-25 15:19:41 +02:00
qaccessibilitymac Fix compiler warning when comparing integers 2022-12-12 20:10:11 +01:00
qcomplextext Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qfocusevent Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
qnetworkaccessmanager_and_qprogressdialog Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qobjectrace Long live Q_UNREACHABLE_RETURN()! 2022-10-15 22:11:47 +02:00
qprocess_and_guieventloop Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qsharedpointer_and_qwidget Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qvariant_common Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sessionmanagement_macos Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
toolsupport Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
xkbkeyboard Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00