Skip to content

Commit

Permalink
tests: use QTEST_GUILESS_MAIN
Browse files Browse the repository at this point in the history
Under Qt 5.12, not using this macro causes link errors, as the
QGuiApplication symbols are being used but not found.
  • Loading branch information
mardy committed May 23, 2021
1 parent bb85bcf commit f32eea1
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Expand Up @@ -54,4 +54,4 @@ void ClientPluginTest::testCreateDestroy()
QVERIFY( pluginManager.iLoadedDlls.count() == 0 );
}

QTEST_MAIN(Buteo::ClientPluginTest)
QTEST_GUILESS_MAIN(Buteo::ClientPluginTest)
Expand Up @@ -122,4 +122,4 @@ void DeletedItemsIdStorageTest::testSnapshot()
}


QTEST_MAIN(Buteo::DeletedItemsIdStorageTest)
QTEST_GUILESS_MAIN(Buteo::DeletedItemsIdStorageTest)
Expand Up @@ -52,4 +52,4 @@ void ServerPluginTest::testCreateDestroy()
QVERIFY( pluginManager.iLoadedDlls.count() == 0 );
}

QTEST_MAIN(Buteo::ServerPluginTest)
QTEST_GUILESS_MAIN(Buteo::ServerPluginTest)
Expand Up @@ -50,4 +50,4 @@ void StoragePluginTest::testCreateDestroy()
QVERIFY( pluginManager.iLoadedDlls.count() == 0 );
}

QTEST_MAIN(Buteo::StoragePluginTest)
QTEST_GUILESS_MAIN(Buteo::StoragePluginTest)
Expand Up @@ -103,4 +103,4 @@ void ProfileFactoryTest::testCreateFromXml()

}

QTEST_MAIN(Buteo::ProfileFactoryTest)
QTEST_GUILESS_MAIN(Buteo::ProfileFactoryTest)
Expand Up @@ -70,4 +70,4 @@ void ProfileFieldTest::testField()
QCOMPARE(doc.toString(), doc2.toString());
}

QTEST_MAIN(Buteo::ProfileFieldTest)
QTEST_GUILESS_MAIN(Buteo::ProfileFieldTest)
Expand Up @@ -675,4 +675,4 @@ void ProfileManagerTest::testBackup()
QVERIFY(!QFile::exists(fileName + ".bak"));
}

QTEST_MAIN(Buteo::ProfileManagerTest)
QTEST_GUILESS_MAIN(Buteo::ProfileManagerTest)
Expand Up @@ -453,4 +453,4 @@ QString ProfileTest::profileFileToString(const QString &aName,
}


QTEST_MAIN(Buteo::ProfileTest)
QTEST_GUILESS_MAIN(Buteo::ProfileTest)
Expand Up @@ -64,4 +64,4 @@ void StorageProfileTest::testStorageProfile()
QCOMPARE(p->isEnabled(), true);
}

QTEST_MAIN(Buteo::StorageProfileTest)
QTEST_GUILESS_MAIN(Buteo::StorageProfileTest)
Expand Up @@ -298,4 +298,4 @@ void SyncLogTest::testAddDetails()
TargetResults::ITEM_OPERATION_FAILED).isEmpty());
}

QTEST_MAIN(Buteo::SyncLogTest)
QTEST_GUILESS_MAIN(Buteo::SyncLogTest)
Expand Up @@ -223,4 +223,4 @@ void SyncProfileTest::testSubProfiles()

}

QTEST_MAIN(Buteo::SyncProfileTest)
QTEST_GUILESS_MAIN(Buteo::SyncProfileTest)

0 comments on commit f32eea1

Please sign in to comment.