From 18a24eabbecb2a8a11c9c77d677dcd030342ade0 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 1 Oct 2024 16:32:54 +0200 Subject: [PATCH] tests: skip tst_QWidget_window::tst_dnd_events() on u2404 x11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-129567 Change-Id: I108a468033a9579b07a379470a43aa94d5cf9ec0 Reviewed-by: Tor Arne Vestbø Reviewed-by: Dimitrios Apostolou (cherry picked from commit c851602020cd564d42c9721eb19888471a11107c) Reviewed-by: Qt Cherry-pick Bot --- .../auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp b/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp index b44eabfadd6..a04ab9f6cb4 100644 --- a/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp +++ b/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp @@ -31,6 +31,7 @@ #include using namespace QTestPrivate; +using namespace Qt::StringLiterals; // Compare a window position that may go through scaling in the platform plugin with fuzz. static inline bool qFuzzyCompareWindowPosition(const QPoint &p1, const QPoint p2, int fuzz) @@ -805,6 +806,8 @@ void tst_QWidget_window::tst_dnd_events() // catch regressions at cross platform code: QGuiApplication::processDrag/Leave(). if (platformName != "xcb") return; + if (qgetenv("XDG_CURRENT_DESKTOP").toLower().contains("ubuntu") && QSysInfo::productVersion() == "24.04"_L1) + QSKIP("This hangs on Ubuntu 24.04 X11, see also QTBUG-129567."); const QString expectedDndEvents = "DragEnter DragMove DropEvent DragEnter DragMove " "DropEvent DragEnter DragMove DropEvent ";