aboutsummaryrefslogtreecommitdiff
path: root/autotests/kstandardshortcutwatchertest.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2022-05-03 14:24:52 +0200
committerDavid Faure <faure@kde.org>2022-05-03 14:24:52 +0200
commit329c4f2ef85a1617cabc1b096b33dd114075138c (patch)
treec16f26c53a158835ab829ec5b57a6602e96f3bd9 /autotests/kstandardshortcutwatchertest.cpp
parent893376f6ee231304dbc740c714fa80ae5f338940 (diff)
downloadkconfig-329c4f2ef85a1617cabc1b096b33dd114075138c.tar.gz
kconfig-329c4f2ef85a1617cabc1b096b33dd114075138c.tar.bz2
autotests: skip KStandardShortcutWatcherTest on Windows
This is a followup to commit 3c861a6c3860d516
Diffstat (limited to 'autotests/kstandardshortcutwatchertest.cpp')
-rw-r--r--autotests/kstandardshortcutwatchertest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/autotests/kstandardshortcutwatchertest.cpp b/autotests/kstandardshortcutwatchertest.cpp
index 64d55d5c..52c29107 100644
--- a/autotests/kstandardshortcutwatchertest.cpp
+++ b/autotests/kstandardshortcutwatchertest.cpp
@@ -44,6 +44,9 @@ void KStandardShortcutWatcherTest::init()
void KStandardShortcutWatcherTest::testSignal()
{
+#ifdef Q_OS_WIN
+ QSKIP("KConfig is built without DBus on Windows");
+#endif
QSignalSpy signalSpy(KStandardShortcut::shortcutWatcher(), &KStandardShortcut::StandardShortcutWatcher::shortcutChanged);
KStandardShortcut::saveShortcut(KStandardShortcut::Open, newShortcut);
QTRY_COMPARE(signalSpy.count(), 1);
@@ -54,6 +57,9 @@ void KStandardShortcutWatcherTest::testSignal()
void KStandardShortcutWatcherTest::testDataUpdated()
{
+#ifdef Q_OS_WIN
+ QSKIP("KConfig is built without DBus on Windows");
+#endif
QSignalSpy signalSpy(KStandardShortcut::shortcutWatcher(), &KStandardShortcut::StandardShortcutWatcher::shortcutChanged);
// Writing manually to forego automatic update in saveShortcut()
KConfigGroup group(KSharedConfig::openConfig(), "Shortcuts");