qt6-bb10/tests/auto/sql/kernel
Edward Welbourne 9030ffdffb Use qScopeGuard() to take care of post-test tidy-up
Doing the tidy-up after the last check has the problem that it gets
skipped if any check fails, as the premature return skips the tidy-up.
In the process, added the missing tidy-up to prematureExec().

Repackage the code for one tidy-up as a named lambda so that the
duplicate can share it with the scope guard. Made some existing scope
guards const, while I was about it, so that the one that isn't -
because it gets dismiss()ed - stand out.

Change-Id: I96d6834d5d7675f15018169a7093b0211db6f8a9
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-02-10 19:20:59 +01:00
..
qsql Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqldatabase Sql ODBC driver: add direct support for float and short datatype 2021-01-10 13:02:14 +01:00
qsqldriver Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlerror Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlfield Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlquery Use qScopeGuard() to take care of post-test tidy-up 2022-02-10 19:20:59 +01:00
qsqlrecord Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlresult Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlthread Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00