diff --git a/tests/auto/wayland/client/tst_client.cpp b/tests/auto/wayland/client/tst_client.cpp index 1e0fc5675b8..ab9e5754d39 100644 --- a/tests/auto/wayland/client/tst_client.cpp +++ b/tests/auto/wayland/client/tst_client.cpp @@ -113,6 +113,7 @@ class TestGlWindow : public QOpenGLWindow public: TestGlWindow(); + uint paintGLCalled = 0; protected: void paintGL() override; @@ -124,6 +125,7 @@ TestGlWindow::TestGlWindow() void TestGlWindow::paintGL() { glClear(GL_COLOR_BUFFER_BIT); + ++paintGLCalled; } class tst_WaylandClient : public QObject @@ -550,6 +552,8 @@ void tst_WaylandClient::glWindow() QSharedPointer surface; QTRY_VERIFY(surface = compositor->surface()); + QTRY_VERIFY(testWindow->paintGLCalled); + //confirm we don't crash when we delete an already hidden GL window //QTBUG-65553 testWindow->setVisible(false);