From a4394b7241a9fb38f210d9b933c075ef18771a66 Mon Sep 17 00:00:00 2001 From: Ievgenii Meshcheriakov Date: Thu, 10 Aug 2023 11:42:54 +0200 Subject: [PATCH] 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 --- tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp b/tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp index e2c093c46d..6e6dffcb76 100644 --- a/tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp +++ b/tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp @@ -90,5 +90,5 @@ void tst_QVfsSql::testRwDb() QFile::remove(dbPath); } -QTEST_APPLESS_MAIN(tst_QVfsSql) +QTEST_MAIN(tst_QVfsSql) #include "tst_qvfssql.moc"