diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-11-20 17:20:53 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-11-24 18:54:45 +0100 |
commit | 764fbb1c014c2adf61b53d0f3b3d7affaf4f22de (patch) | |
tree | 349510af524879c4b4233f45949d6f0c2c456183 /tests/auto/widgets/util | |
parent | d8579826ed2834ef8f63b39bce7c3869dac733da (diff) |
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>
Diffstat (limited to 'tests/auto/widgets/util')
-rw-r--r-- | tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp b/tests/auto/widgets/util/qsystemtrayicon/tst_qsystemtrayicon.cpp index 148894dc4e..aa246fa04a 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) |