diff --git a/autotests/integration/scene_qpainter_test.cpp b/autotests/integration/scene_qpainter_test.cpp index 086f86ad61..ad353a28d5 100644 --- a/autotests/integration/scene_qpainter_test.cpp +++ b/autotests/integration/scene_qpainter_test.cpp @@ -35,6 +35,7 @@ along with this program. If not, see . #include #include #include +#include #include @@ -339,6 +340,7 @@ void SceneQPainterTest::testX11Window() QVERIFY(surfaceChangedSpy.wait()); } QVERIFY(client->surface()); + QTRY_VERIFY(client->surface()->buffer()); // enough time for rendering the window QTest::qWait(100);