diff options
author | Felix Geyer <debfx@fobos.de> | 2012-01-02 01:04:27 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2012-01-02 01:04:27 +0400 |
commit | a61057d7f666d58b62f7f593b59dc205e10e3b6f (patch) | |
tree | ce0d2e9ff7ec6ce7e38531b33581ad6962cc7f10 /tests/TestGroupModel.cpp | |
parent | 17d0fb9963d9d02ea7d6fc8b52631d7ae6705cd6 (diff) |
Core tests instantiate QCoreApplication instead of QApplication.
This way they can be used without a running X server.
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r-- | tests/TestGroupModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TestGroupModel.cpp b/tests/TestGroupModel.cpp index 70a6e4c66..82a6bff24 100644 --- a/tests/TestGroupModel.cpp +++ b/tests/TestGroupModel.cpp @@ -21,6 +21,7 @@ #include <QtTest/QTest> #include "modeltest.h" +#include "tests.h" #include "core/Database.h" #include "core/Group.h" #include "crypto/Crypto.h" @@ -109,4 +110,4 @@ void TestGroupModel::test() delete model; } -QTEST_MAIN(TestGroupModel); +KEEPASSX_QTEST_CORE_MAIN(TestGroupModel) |