mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Core tests instantiate QCoreApplication instead of QApplication.
This way they can be used without a running X server.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <QtTest/QTest>
|
||||
|
||||
#include "modeltest.h"
|
||||
#include "tests.h"
|
||||
#include "core/Entry.h"
|
||||
#include "core/Group.h"
|
||||
#include "gui/EntryModel.h"
|
||||
@@ -92,4 +93,4 @@ void TestEntryModel::test()
|
||||
delete model;
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestEntryModel);
|
||||
KEEPASSX_QTEST_CORE_MAIN(TestEntryModel)
|
||||
|
||||
Reference in New Issue
Block a user