one more iteration to try to fix tests on travis

This commit is contained in:
2017-02-14 03:48:11 +03:00
parent ce09ab753b
commit 38c5589c10
11 changed files with 66 additions and 15 deletions

View File

@ -18,6 +18,7 @@
#include "testawkeys.h"
#include <KWindowSystem>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QtTest>
@ -112,6 +113,9 @@ void TestAWKeys::test_pattern()
void TestAWKeys::test_tooltip()
{
if (!KWindowSystem::workArea().isValid())
QSKIP("KWin inactive, skip tooltip test");
QSignalSpy spy(plugin, SIGNAL(needToolTipToBeUpdated(const QString)));
QVERIFY(spy.wait(5 * interval));
@ -164,6 +168,9 @@ void TestAWKeys::test_valueByKey()
void TestAWKeys::test_dbus()
{
if (!plugin->isDBusActive())
QSKIP("No DBus session created, skip DBus test");
// get id
qlonglong id = reinterpret_cast<qlonglong>(plugin);