From ca8554d338c7d16c63dca93a7fcee2d2463a6664 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 12 Oct 2022 14:57:04 +0200 Subject: 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 --- tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp') 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); } -- cgit v1.2.3