[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:59 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=acdd96c
The following commit has been merged in the master branch:
commit acdd96c4315b3512c8875f09cc628fb7987083e0
Author: Aleix Pol <aleixpol at kde.org>
Date: Tue Sep 8 20:11:52 2015 +0200
Fix device lookup on the tests
---
tests/pluginloadtest.cpp | 7 ++++++-
tests/sendfiletest.cpp | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/tests/pluginloadtest.cpp b/tests/pluginloadtest.cpp
index 0077670..0453f6e 100644
--- a/tests/pluginloadtest.cpp
+++ b/tests/pluginloadtest.cpp
@@ -75,7 +75,12 @@ class PluginLoadTest : public QObject
private Q_SLOTS:
void testPlugins() {
- Device* d = mDaemon->devicesList().first();
+ Device* d = nullptr;
+ foreach(Device* id, mDaemon->devicesList()) {
+ if (id->isReachable())
+ d = id;
+ }
+ QVERIFY(d);
QVERIFY(d->isPaired());
QVERIFY(d->isReachable());
diff --git a/tests/sendfiletest.cpp b/tests/sendfiletest.cpp
index 8e96c0b..d9d6ab5 100644
--- a/tests/sendfiletest.cpp
+++ b/tests/sendfiletest.cpp
@@ -72,7 +72,12 @@ class TestSendFile : public QObject
private Q_SLOTS:
void testSend() {
- Device* d = mDaemon->devicesList().first();
+ Device* d = nullptr;
+ foreach(Device* id, mDaemon->devicesList()) {
+ if (id->isReachable())
+ d = id;
+ }
+ QVERIFY(d);
QCOMPARE(d->isReachable(), true);
QCOMPARE(d->isPaired(), true);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list