mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-14 20:42:35 -04:00
Core tests instantiate QCoreApplication instead of QApplication.
This way they can be used without a running X server.
This commit is contained in:
parent
17d0fb9963
commit
a61057d7f6
14 changed files with 59 additions and 13 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <QtCore/QBuffer>
|
||||
#include <QtTest/QTest>
|
||||
|
||||
#include "tests.h"
|
||||
#include "core/Database.h"
|
||||
#include "core/Group.h"
|
||||
#include "core/Metadata.h"
|
||||
|
@ -78,4 +79,4 @@ void TestKeePass2Writer::testProtectedAttributes()
|
|||
QCOMPARE(entry->isAttributeProtected("test"), true);
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestKeePass2Writer);
|
||||
KEEPASSX_QTEST_CORE_MAIN(TestKeePass2Writer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue