From 2bcfe080d92654a1deb03380ffa20e73aae58cae Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 17 Jan 2024 10:20:43 +0100 Subject: [PATCH] tests: skip tst_QGuiApplication::topLevelAt() on Wayland This amends 189f9873ae3f23377708fbf9880398fd6a078715 . Pick-to: 6.6 6.5 Fixes: QTBUG-121015 Change-Id: I66d2a2b0162b9c7b488af840ff5d3a881b657782 Reviewed-by: David Edmundson (cherry picked from commit d4f7d2aeabe2e778224d64a65667aa09b9e42a70) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp b/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp index e4f1158d27d..d969858ac68 100644 --- a/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp +++ b/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp @@ -1333,6 +1333,9 @@ void tst_QGuiApplication::topLevelAt() char *argv[] = { const_cast("tst_qguiapplication") }; QGuiApplication app(argc, argv); + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("QGuiApplication::topLevelAt() is not Wayland compliant, see also QTBUG-121015"); + QWindow bottom; bottom.setObjectName("Bottom"); bottom.setFlag(Qt::FramelessWindowHint);