tst_qvfssql: Don't use appless main

QSqlDatabase uses a Q_APPLICATION_GLOBAL and so should not be used
without QCoreApplication instance. The test crashes if the existence
of an application instance is asserted in Q_APPLICATION_GLOBAL
code.

Pick-to: 6.6
Change-Id: Iaa3f4dff7b2722257735680dd3885aeed0ac810b
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
Ievgenii Meshcheriakov 2023-08-10 11:42:54 +02:00
parent 86d801e352
commit a4394b7241

View File

@ -90,5 +90,5 @@ void tst_QVfsSql::testRwDb()
QFile::remove(dbPath); QFile::remove(dbPath);
} }
QTEST_APPLESS_MAIN(tst_QVfsSql) QTEST_MAIN(tst_QVfsSql)
#include "tst_qvfssql.moc" #include "tst_qvfssql.moc"