qt5base-lts/tests/auto/sql/kernel/qsqldatabase
Friedemann Kleint 9a4beb4d36 Improve handling of temporary directories in SQL tests.
Initialize directory delayed in shared code and add checks to verify
that it is valid. Close attached / cloned databases to prevent locks
on files and leaking temporary directories caused by SQLite:

QTemporaryDir: Unable to remove "...\Temp\tst_qsqldatabase-P1XkOA" most likely due to the presence of read-only files.
QTemporaryDir: Unable to remove "...\Temp\tst_qsqltablemodel-P1XkOA" most likely due to the presence of read-only files.
QWARN  : tst_QSql::concurrentAccess() QTemporaryDir: Unable to remove "...\Temp\tst_qsql-l0VAKJ" most likely due to the presence of read-only files.

Change-Id: If85bbaed04bb1a32e427d642be332996d967f796
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2014-04-04 16:55:01 +02:00
..
testdata Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00
.gitignore Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00
qsqldatabase.pro Move the dbmstype to QSqlDriverPrivate so it can be used for all drivers 2013-04-02 19:02:26 +02:00
tst_databases.h Improve handling of temporary directories in SQL tests. 2014-04-04 16:55:01 +02:00
tst_qsqldatabase.cpp Improve handling of temporary directories in SQL tests. 2014-04-04 16:55:01 +02:00