summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2022-10-12 14:57:04 +0200
committerLiang Qi <liang.qi@qt.io>2022-10-14 17:18:52 +0200
commitca8554d338c7d16c63dca93a7fcee2d2463a6664 (patch)
tree863a77788178c8a6e158aff37ffffbc7ae6ca85c /tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
parent89b54bb4ec60c302c940e5d21705bab460e1898a (diff)
tests: tst_QWidget::renderChildFillsBackground() passes on Wayland
This amends 1453f048f535d98ea2454462875eed77a966bcde. Task-number: QTBUG-107157 Pick-to: 6.4 Change-Id: I606dd2013e11a4f7639fea59d75091191fd30d87 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index 05a2df1d79..7f8421f189 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -7465,7 +7465,8 @@ void tst_QWidget::renderChildFillsBackground()
#ifndef Q_OS_ANDROID
// On Android all widgets are shown maximized, so the pixmaps
// will be similar
- QEXPECT_FAIL("", "This test fails on all platforms", Continue);
+ if (!m_platform.startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
+ QEXPECT_FAIL("", "This test fails on all platforms", Continue);
#endif
QCOMPARE(childPixmap, windowPixmap);
}