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/TestKeePass2RandomStream.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/TestKeePass2RandomStream.cpp')
-rw-r--r-- | tests/TestKeePass2RandomStream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TestKeePass2RandomStream.cpp b/tests/TestKeePass2RandomStream.cpp index af71df863..cf520d1d1 100644 --- a/tests/TestKeePass2RandomStream.cpp +++ b/tests/TestKeePass2RandomStream.cpp @@ -19,6 +19,7 @@ #include <QtTest/QTest> +#include "tests.h" #include "crypto/Crypto.h" #include "crypto/CryptoHash.h" #include "crypto/SymmetricCipher.h" @@ -77,4 +78,4 @@ void TestKeePass2RandomStream::test() QCOMPARE(randomStreamData, cipherData); } -QTEST_MAIN(TestKeePass2RandomStream); +KEEPASSX_QTEST_CORE_MAIN(TestKeePass2RandomStream) |