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

It fails on build.kde.org which might be a side effect.
icc-effect-5.14.5
Martin Flöser 2017-07-27 20:36:52 +02:00
parent 54ca2bba25
commit d39fea1b67
1 changed files with 7 additions and 0 deletions

View File

@ -332,6 +332,13 @@ void SceneQPainterTest::testX11Window()
QVERIFY(client);
QCOMPARE(client->window(), w);
QCOMPARE(client->clientSize(), QSize(100, 200));
if (!client->surface()) {
// wait for surface
QSignalSpy surfaceChangedSpy(client, &Toplevel::surfaceChanged);
QVERIFY(surfaceChangedSpy.isValid());
QVERIFY(surfaceChangedSpy.wait());
}
QVERIFY(client->surface());
// enough time for rendering the window
QTest::qWait(100);