From 1c0406ee17d5747f8e5b107db81949055aaa7f9e Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 30 Jan 2025 09:26:00 +0100 Subject: [PATCH] tests: Skip tst_QClipboard for Ubuntu 24.04 GNOME/X11 Sometimes test causes kernel crash. Test is skipped until gnome-shell 46.1 or newer is backported to Ubuntu 24.04 LTS. See also https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2095396 Task-number: QTBUG-132070 Pick-to: 6.9 6.8 Change-Id: Ia1c7f1737e225189b86cb2b2d2ff68a7cc1e838c Reviewed-by: Axel Spoerl --- tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp index 30366c6aa15..733fd2cc16d 100644 --- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp +++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp @@ -26,6 +26,8 @@ # include #endif +using namespace Qt::StringLiterals; + class tst_QClipboard : public QObject { Q_OBJECT @@ -58,6 +60,10 @@ void tst_QClipboard::initTestCase() #endif if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) QSKIP("Wayland: Manipulating the clipboard requires real input events. Can't auto test."); + if (qgetenv("XDG_CURRENT_DESKTOP").toLower().contains("ubuntu:gnome") + && QSysInfo::productVersion() == "24.04"_L1 + && QSysInfo::prettyProductName() == "Ubuntu 24.04 LTS"_L1) + QSKIP("This hangs on Ubuntu 24.04(.0) GNOME/X11, see also QTBUG-129567."); } #if QT_CONFIG(clipboard)