aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/scenegraph
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-01-26 09:25:15 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-01-29 11:10:49 +0000
commitc1c7a952bc11d3bd9edcd3739c57df15b60a9e79 (patch)
treeecd1ad0087f973e0eba66e5392db48d00e478036 /tests/auto/quick/scenegraph
parentcf6e97119df5bf17b4a952b257d05d43b7d6ca26 (diff)
Verify context creation in Quick tests.
Verify initialization steps and initialize pointers to avoid crashes. Change-Id: I2d3a53c6719727aed56e673d0d8cf5a02ae0f0f6 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/scenegraph')
-rw-r--r--tests/auto/quick/scenegraph/tst_scenegraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/scenegraph/tst_scenegraph.cpp b/tests/auto/quick/scenegraph/tst_scenegraph.cpp
index 4f24acc48c..7189fda8b7 100644
--- a/tests/auto/quick/scenegraph/tst_scenegraph.cpp
+++ b/tests/auto/quick/scenegraph/tst_scenegraph.cpp
@@ -222,7 +222,7 @@ void tst_SceneGraph::manyWindows()
QOpenGLContext sharedGLContext;
ShareContextResetter cleanup; // To avoid dangling pointer in case of test-failure.
if (shared) {
- sharedGLContext.create();
+ QVERIFY(sharedGLContext.create());
QOpenGLContextPrivate::setGlobalShareContext(&sharedGLContext);
}
@@ -459,7 +459,7 @@ void tst_SceneGraph::hideWithOtherContext()
window.resize(100, 100);
window.create();
QOpenGLContext context;
- context.create();
+ QVERIFY(context.create());
bool renderingOnMainThread = false;
{