Skip to content

Commit

Permalink
Fix recent test failures.
Browse files Browse the repository at this point in the history
Apparently starting in Qt6.7, the QSqlDatase class requires that a
QCoreApplication exist.  These test cases are failing because (like
all of the existing tests) they are using the "appless" test mode.
Switching these test cases from "appless" testing to "guiless" testing
tells eliminate the errors.
  • Loading branch information
linuxdude42 committed Apr 24, 2024
1 parent 2ed651c commit 6f57108
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ void TestDbCon::cleanupTestCase()
{
}

QTEST_APPLESS_MAIN(TestDbCon)
QTEST_GUILESS_MAIN(TestDbCon)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include "test_programinfo.h"

QTEST_APPLESS_MAIN(TestProgramInfo)
QTEST_GUILESS_MAIN(TestProgramInfo)
Original file line number Diff line number Diff line change
Expand Up @@ -921,4 +921,4 @@ void TestRecordingExtender::test_processNewRecordings(void)
QVERIFY(game.getGameUrl().url().endsWith(expectedGameUrl));
}

QTEST_APPLESS_MAIN(TestRecordingExtender)
QTEST_GUILESS_MAIN(TestRecordingExtender)
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ void TestVideoList::cleanupTestCase()
{
}

QTEST_APPLESS_MAIN(TestVideoList)
QTEST_GUILESS_MAIN(TestVideoList)

0 comments on commit 6f57108

Please sign in to comment.