diff options
author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2023-08-10 11:42:54 +0200 |
---|---|---|
committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2023-08-11 15:45:36 +0200 |
commit | a4394b7241a9fb38f210d9b933c075ef18771a66 (patch) | |
tree | d20006ee186baf972d8142a9b0561ace3e3cabd0 /tests/auto/sql | |
parent | 86d801e352ded9d1fc5f02a18386c63012bce16d (diff) |
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>
Diffstat (limited to 'tests/auto/sql')
-rw-r--r-- | tests/auto/sql/kernel/qvfssql/tst_qvfssql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |