From 764fbb1c014c2adf61b53d0f3b3d7affaf4f22de Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Fri, 20 Nov 2020 17:20:53 +0100 Subject: [PATCH] Skip QSystemTrayIcon unit test for offscreen platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we are using the offscreen plugin, there might or might not be a working system tray icon. This patch disables the unit test in that case as we do not know what to expect. Change-Id: I34fded516300cc9aab1eb67644dcef8631ecfdf1 Reviewed-by: Morten Johan Sørvig --- .../auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp b/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp index 148894dc4e5..aa246fa04a5 100644 --- a/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp +++ b/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp @@ -109,6 +109,9 @@ void tst_QSystemTrayIcon::supportsMessages() if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) QSKIP("Wayland: This fails. Figure out why."); + if (QGuiApplication::platformName() == u"offscreen") + QSKIP("Offscreen rendering. Might or might not have system tray icon."); + // ### fixme: Check platforms. const QString platform = QGuiApplication::platformName(); if (platform.compare(QStringLiteral("xcb"), Qt::CaseInsensitive)