aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp b/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
index eac0d851d5..8f0c4e6fce 100644
--- a/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
+++ b/tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
@@ -685,7 +685,9 @@ void tst_qquickcanvas::headless()
// Hide the canvas and verify signal emittion and GL context deletion
canvas->hide();
- QCOMPARE(invalidated.size(), 1);
+ canvas->releaseResources();
+
+ QTRY_COMPARE(invalidated.size(), 1);
QVERIFY(canvas->openglContext() == 0);
// Destroy the native windowing system buffers