diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-31 14:35:28 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-31 14:35:28 +0100 |
commit | 342b0332b895534e5a7083aa5a1cf4cf1aa120f3 (patch) | |
tree | 93898d00d50d3acdce6a79c15ebdf012d82f560d /tests | |
parent | b37e7ce72bc9db14e777aa22dd631f3eebea4822 (diff) | |
download | kube-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.cpp | 2 |
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 | ||
23 | int main(int argc, char **argv) | 24 | int 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 |