diff --git a/tests/auto/gui/kernel/qscreen/tst_qscreen.cpp b/tests/auto/gui/kernel/qscreen/tst_qscreen.cpp index 18120e8c24..c29162ee67 100644 --- a/tests/auto/gui/kernel/qscreen/tst_qscreen.cpp +++ b/tests/auto/gui/kernel/qscreen/tst_qscreen.cpp @@ -302,6 +302,8 @@ void tst_QScreen::grabWindow() QImage grabbedImage = pixmap.toImage(); const QSize grabbedSize = grabbedImage.size(); + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QEXPECT_FAIL("", "Wayland: Screen grabbing not implemented, See QTBUG-100792.", Abort); QCOMPARE(grabbedSize, expectedGrabSize); QPoint pixelOffset = QPoint(0, 0);