qt5base-lts/tests/auto/other
Ivan Solovev cd3e3c0dc2 A11Y tests: wrap memory allocations into smart pointers
Some of the UI elements in the a11y tests are allocated dynamically,
which means that if the test fails, the element is not destroyed
properly. As a result, the "hanging" UI elements affect all the
following tests, which leads to more test failures and even hangs.

This patch wraps all such allocations into smart pointers, which
guarantees correct destruction in case of test failure, so that other
tests are not affected, and also prevents memleaks.

As a drive-by:
- use nullptr instead of 0 in constructors;
- create some objects on stack instead of dynamically allocating
  memory for them;
- remove some unneeded 'delete' calls for the objects that belong
  to QObject-hierarchy.

Task-number: QTBUG-87674
Pick-to: 6.3 6.2
Change-Id: I0dcc26990955cd7b240a689a7438880b686985b7
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-02-17 21:42:23 +01:00
..
android Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00
gestures Extend blacklisting of tst_gestures including all RHEL's 2021-04-13 08:20:48 +03:00
languagechange Remove the qmake project files 2021-01-07 15:32:28 +01:00
macgui Remove QEXPECT_FAIL from passing test 2021-03-31 10:20:07 +02:00
macnativeevents Remove the qmake project files 2021-01-07 15:32:28 +01:00
macplist Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
networkselftest Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qabstractitemmodelutils Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qaccessibility A11Y tests: wrap memory allocations into smart pointers 2022-02-17 21:42:23 +01:00
qaccessibilitylinux Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qaccessibilitymac Stabilize tst_QAccessibilityMac 2021-11-26 14:22:05 +01:00
qcomplextext Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfocusevent QPA: Set focus reason when window activation changes focus 2021-12-03 08:15:29 +01:00
qnetworkaccessmanager_and_qprogressdialog Remove the qmake project files 2021-01-07 15:32:28 +01:00
qobjectrace Fix crash in concurrent disconnect 2021-06-17 08:56:22 +02:00
qprocess_and_guieventloop Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qsharedpointer_and_qwidget tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qvariant_common Split up the QMetaType unit test 2021-02-09 14:27:20 +01:00
sessionmanagement_macos Remove the qmake project files 2021-01-07 15:32:28 +01:00
toolsupport QIODevice: use QVLA to hold the ring buffers, not QList 2021-12-15 17:35:13 +00:00
xkbkeyboard Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Rename and restructure the baseline (lancelot) testing code 2021-11-16 14:01:50 +01:00