From 329c4f2ef85a1617cabc1b096b33dd114075138c Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 3 May 2022 14:24:52 +0200 Subject: autotests: skip KStandardShortcutWatcherTest on Windows This is a followup to commit 3c861a6c3860d516 --- autotests/kstandardshortcutwatchertest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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"); -- cgit v1.2.1