qt5base-lts/tests/auto/sql/models/qsqlrelationaltablemodel
Alexandru Croitor fb55e1e71e Sql: Fix heap-user-after-free for globally initialized db objects
Becaues the database objects were created as globals, there was a
possible use-after-free issue when deleting the objects on application
exit.

Move the initialization of the database objects into static variables
inside the test constructor.

As a drive-by, also add one missing test to the CMake projects.

Fixes: QTBUG-85357
Change-Id: I2c8f2c5daee96bb9d1d21dae37950a2da5ffdf27
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-07-01 10:03:57 +02:00
..
.gitignore Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00
CMakeLists.txt Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qsqlrelationaltablemodel.pro QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
tst_qsqlrelationaltablemodel.cpp Sql: Fix heap-user-after-free for globally initialized db objects 2020-07-01 10:03:57 +02:00