From fe400975b9460e46ab7fc7e00c2f16c4fbddda58 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 4 Oct 2022 12:33:54 +0200 Subject: [PATCH] tests: skip two tests in tst_QDockWidget on Wayland This amends 9ff40b59da58160dc26c54204a615a2456e07405 . Task-number: QTBUG-107153 Change-Id: Ie66205c5402d4346ffb61619ccb6a955623f5984 Reviewed-by: Axel Spoerl Reviewed-by: Eskil Abrahamsen Blomfeldt (cherry picked from commit 8b143f0aed3124aa4c0030f6074263bbd03100a5) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp index 3f605ca1292..eb60e5b408b 100644 --- a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp +++ b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp @@ -1320,6 +1320,8 @@ void tst_QDockWidget::xcbMessageHandler(QtMsgType type, const QMessageLogContext // test floating tabs and item_tree consistency void tst_QDockWidget::floatingTabs() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Test skipped on Wayland."); #ifdef Q_OS_WIN QSKIP("Test skipped on Windows platforms"); #endif // Q_OS_WIN @@ -1627,6 +1629,8 @@ void tst_QDockWidget::dockPermissions() */ void tst_QDockWidget::saveAndRestore() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Test skipped on Wayland."); #ifdef Q_OS_WIN QSKIP("Test skipped on Windows platforms"); #endif // Q_OS_WIN