Commit f9e0e8a9 authored by Martin Flöser's avatar Martin Flöser

[autotests] Try making KWinBindingsTest::testSwitchWindowScript more robust

Another random failure on build.kde.org (see T6546). This tries to use
QTRY_COMPARE on the SignalSpy's count instead of a wait in the hope that
this can handle the multi-threaded situation better. Though it might
also be possible that the other thread just didn't run in the 5 sec we
waited.
parent d0c2c1ed
......@@ -186,7 +186,7 @@ void KWinBindingsTest::testSwitchWindowScript()
QSignalSpy runningChangedSpy(s, &AbstractScript::runningChanged);
QVERIFY(runningChangedSpy.isValid());
s->run();
QVERIFY(runningChangedSpy.wait());
QTRY_COMPARE(runningChangedSpy.count(), 1);
};
runScript(QStringLiteral("slotSwitchWindowUp"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment