summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-31 14:35:28 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-31 14:35:28 +0100
commit342b0332b895534e5a7083aa5a1cf4cf1aa120f3 (patch)
tree93898d00d50d3acdce6a79c15ebdf012d82f560d /tests
parentb37e7ce72bc9db14e777aa22dd631f3eebea4822 (diff)
downloadkube-342b0332b895534e5a7083aa5a1cf4cf1aa120f3.tar.gz
kube-342b0332b895534e5a7083aa5a1cf4cf1aa120f3.zip
Ensure that we can load replies.
The webengine based code we use to create replies needs a QApplication.
Diffstat (limited to 'tests')
-rw-r--r--tests/kubetestrunner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kubetestrunner.cpp b/tests/kubetestrunner.cpp
index 99017a43..d2c7331c 100644
--- a/tests/kubetestrunner.cpp
+++ b/tests/kubetestrunner.cpp
@@ -18,10 +18,12 @@
18*/ 18*/
19#include <QtQuickTest/quicktest.h> 19#include <QtQuickTest/quicktest.h>
20#include <QQmlEngine> 20#include <QQmlEngine>
21#include <QApplication>
21#include <sink/test.h> 22#include <sink/test.h>
22 23
23int main(int argc, char **argv) 24int main(int argc, char **argv)
24{ 25{
26 QApplication app(argc, argv);
25 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); 27 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
26 28
27 QTEST_ADD_GPU_BLACKLIST_SUPPORT 29 QTEST_ADD_GPU_BLACKLIST_SUPPORT