From 6f6e62650de3d71e27c5bcbc02f10d8b635ffdd8 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 4 Aug 2023 05:55:22 +0200 Subject: [PATCH] tests: skip three tests in tst_QDockWidget on Wayland Task-number: QTBUG-107153 Pick-to: 6.6 6.5 Change-Id: Iad2bc83db96c25508b54ecc5b7c74280cfe90270 Reviewed-by: Axel Spoerl --- tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp index 97878e0887..3f290b9f07 100644 --- a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp +++ b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp @@ -1444,6 +1444,8 @@ void tst_QDockWidget::floatingTabs() // test hide & show void tst_QDockWidget::hideAndShow() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Test skipped on Wayland."); #ifdef QT_BUILD_INTERNAL // Skip test if xcb error is launched qThis = this; @@ -1507,6 +1509,8 @@ void tst_QDockWidget::hideAndShow() // test closing and deleting consistency void tst_QDockWidget::closeAndDelete() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Test skipped on Wayland."); #ifdef QT_BUILD_INTERNAL // Create a mainwindow with a central widget and two dock widgets QPointer d1; @@ -1571,6 +1575,8 @@ void tst_QDockWidget::closeAndDelete() // Test dock area permissions void tst_QDockWidget::dockPermissions() { + 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