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 <paul.tvete@qt.io>
This commit is contained in:
parent
3416e5423e
commit
30245c8515
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user