Commit a13ecb1c authored by Martin Flöser's avatar Martin Flöser
Browse files

[autotests] Try to make SceneQPainterTest::testX11Window more robust

Still failing on CI, let's try  to verify that the buffer is ready.
parent 4b890110
...@@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KWayland/Client/shell.h> #include <KWayland/Client/shell.h>
#include <KWayland/Client/surface.h> #include <KWayland/Client/surface.h>
#include <KWayland/Client/pointer.h> #include <KWayland/Client/pointer.h>
#include <KWayland/Server/surface_interface.h>
#include <QPainter> #include <QPainter>
...@@ -339,6 +340,7 @@ void SceneQPainterTest::testX11Window() ...@@ -339,6 +340,7 @@ void SceneQPainterTest::testX11Window()
QVERIFY(surfaceChangedSpy.wait()); QVERIFY(surfaceChangedSpy.wait());
} }
QVERIFY(client->surface()); QVERIFY(client->surface());
QTRY_VERIFY(client->surface()->buffer());
// enough time for rendering the window // enough time for rendering the window
QTest::qWait(100); QTest::qWait(100);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment