Disable some OpenGL and QRhi tests for offscreen backend
This patch disables four failing unit tests when executed with the offscreen backend. Change-Id: Ie67341b886984e6de19cd8dd8a8a237a620a1b7a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
bb3a53d917
commit
caa632803d
@ -1477,6 +1477,9 @@ using namespace QNativeInterface;
|
||||
#ifdef USE_GLX
|
||||
void tst_QOpenGL::glxContextWrap()
|
||||
{
|
||||
if (QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive))
|
||||
QSKIP("Offscreen: This fails.");
|
||||
|
||||
QWindow *window = new QWindow;
|
||||
window->setSurfaceType(QWindow::OpenGLSurface);
|
||||
window->setGeometry(0, 0, 10, 10);
|
||||
|
@ -2783,6 +2783,9 @@ void tst_QRhi::renderToWindowSimple_data()
|
||||
|
||||
void tst_QRhi::renderToWindowSimple()
|
||||
{
|
||||
if (QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive))
|
||||
QSKIP("Offscreen: This fails.");
|
||||
|
||||
QFETCH(QRhi::Implementation, impl);
|
||||
QFETCH(QRhiInitParams *, initParams);
|
||||
|
||||
@ -2918,6 +2921,9 @@ void tst_QRhi::finishWithinSwapchainFrame_data()
|
||||
|
||||
void tst_QRhi::finishWithinSwapchainFrame()
|
||||
{
|
||||
if (QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive))
|
||||
QSKIP("Offscreen: This fails.");
|
||||
|
||||
QFETCH(QRhi::Implementation, impl);
|
||||
QFETCH(QRhiInitParams *, initParams);
|
||||
|
||||
|
@ -587,7 +587,8 @@ void tst_QOpenGLWidget::stackWidgetOpaqueChildIsVisible()
|
||||
#endif
|
||||
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||
QSKIP("Wayland: This fails. Figure out why.");
|
||||
|
||||
if (QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive))
|
||||
QSKIP("Offscreen: This fails.");
|
||||
|
||||
QStackedWidget stack;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user