Core tests instantiate QCoreApplication instead of QApplication.

This way they can be used without a running X server.
This commit is contained in:
Felix Geyer 2012-01-01 22:04:27 +01:00
parent 17d0fb9963
commit a61057d7f6
14 changed files with 59 additions and 13 deletions

View file

@ -25,6 +25,7 @@
#include <QtGui/QPushButton>
#include "config-keepassx-tests.h"
#include "tests.h"
#include "crypto/Crypto.h"
#include "gui/FileDialog.h"
#include "gui/MainWindow.h"
@ -65,4 +66,4 @@ void TestGui::cleanupTestCase()
delete m_mainWindow;
}
QTEST_MAIN(TestGui);
KEEPASSX_QTEST_GUI_MAIN(TestGui)