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 <axel.spoerl@qt.io>
This commit is contained in:
Liang Qi 2025-01-30 09:26:00 +01:00
parent 0f128fd7c5
commit 1c0406ee17

View File

@ -26,6 +26,8 @@
# include <QtCore/qt_windows.h>
#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)