From 30245c8515bdac93971520b78bd867eadb813ec2 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Mon, 1 Mar 2021 07:56:01 +0100 Subject: Skip tst_QOpenGL::glxContext test on Wayland This test depends on XCB, but is only protected by a build-time flag, so it will be executed as long as XCB is available at build-time. Do as with the offscreen backend and just skip it when a different platform plugin is in use. Task-number: QTBUG-91418 Change-Id: Ida076dc81d0740af2cec164bd40ca10d16345f05 Reviewed-by: Paul Olav Tvete --- tests/auto/gui/qopengl/tst_qopengl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/gui') diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index 9e66ec9a43..e2e7f153a0 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -1480,6 +1480,9 @@ void tst_QOpenGL::glxContextWrap() if (QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive)) QSKIP("Offscreen: This fails."); + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Fails on Wayland."); + QWindow *window = new QWindow; window->setSurfaceType(QWindow::OpenGLSurface); window->setGeometry(0, 0, 10, 10); -- cgit v1.2.3