diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-01-21 10:52:48 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-01-24 16:05:01 +0000 |
commit | 25c49db7c01a65d1d72055b90f569cf9f9f9a8b9 (patch) | |
tree | 014bd57cdb34d373be38179fc2abd4f28a4eb6fc /tests | |
parent | 1ab4bbf7cbafdb0109e8ea0d8fd7f3dae0c4088d (diff) |
Skip the shapes tests on offscreen platform
Replace QEXPECT_FAIL with QSKIP so that grabWindow can be fixed in the
offscreen plugin without XPASS-failing tests in qtdeclarative.
Task-number: QTBUG-99962
Change-Id: I470061a324c963e09b9ebcb48daabdf8d960ff90
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 5d2ffc03f89d092f46ae14e958bedf9fc441b7ec)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qquickshape/tst_qquickshape.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/quick/qquickshape/tst_qquickshape.cpp b/tests/auto/quick/qquickshape/tst_qquickshape.cpp index 14f280e354..d72a3d265e 100644 --- a/tests/auto/quick/qquickshape/tst_qquickshape.cpp +++ b/tests/auto/quick/qquickshape/tst_qquickshape.cpp @@ -284,7 +284,7 @@ void tst_QQuickShape::render() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -308,7 +308,7 @@ void tst_QQuickShape::renderWithMultipleSp() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -332,7 +332,7 @@ void tst_QQuickShape::radialGrad() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -356,7 +356,7 @@ void tst_QQuickShape::conicalGrad() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -380,7 +380,7 @@ void tst_QQuickShape::renderPolyline() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -409,7 +409,7 @@ void tst_QQuickShape::renderMultiline() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -475,7 +475,7 @@ void tst_QQuickShape::polylineDataTypes() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -626,7 +626,7 @@ void tst_QQuickShape::multilineDataTypes() if ((QGuiApplication::platformName() == QLatin1String("offscreen")) || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); @@ -673,8 +673,8 @@ void tst_QQuickShape::multilineStronglyTyped() provider->setPaths(m_lowPolyLogo); if ((QGuiApplication::platformName() == QLatin1String("offscreen")) - || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Failure due to grabWindow not functional on offscreen/minimal platforms", Abort); + || (QGuiApplication::platformName() == QLatin1String("minimal"))) + QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms"); QImage img = window->grabWindow(); QVERIFY(!img.isNull()); |