Skip QSystemTrayIcon unit test for offscreen platform
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 <morten.sorvig@qt.io>
This commit is contained in:
parent
d8579826ed
commit
764fbb1c01
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user