[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:00 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=fc074c8
The following commit has been merged in the master branch:
commit fc074c8ec88f074c703b2572aa0ee67852848f6e
Author: Aleix Pol <aleixpol at kde.org>
Date: Wed Sep 9 20:12:05 2015 +0200
Fix tests
Ensure the loopback device is paired
---
tests/pluginloadtest.cpp | 4 +++-
tests/sendfiletest.cpp | 9 +++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/tests/pluginloadtest.cpp b/tests/pluginloadtest.cpp
index 0453f6e..a2a4bc8 100644
--- a/tests/pluginloadtest.cpp
+++ b/tests/pluginloadtest.cpp
@@ -77,8 +77,10 @@ class PluginLoadTest : public QObject
void testPlugins() {
Device* d = nullptr;
foreach(Device* id, mDaemon->devicesList()) {
- if (id->isReachable())
+ if (id->isReachable()) {
+ id->requestPair();
d = id;
+ }
}
QVERIFY(d);
QVERIFY(d->isPaired());
diff --git a/tests/sendfiletest.cpp b/tests/sendfiletest.cpp
index d9d6ab5..015818b 100644
--- a/tests/sendfiletest.cpp
+++ b/tests/sendfiletest.cpp
@@ -24,6 +24,7 @@
#include <QTest>
#include <QTemporaryFile>
#include <QSignalSpy>
+#include <QStandardPaths>
#include <KIO/AccessManager>
@@ -68,14 +69,18 @@ class TestSendFile : public QObject
{
Q_OBJECT
public:
- TestSendFile() : mDaemon(new TestDaemon) {}
+ TestSendFile() : mDaemon(new TestDaemon) {
+ QStandardPaths::setTestModeEnabled(true);
+ }
private Q_SLOTS:
void testSend() {
Device* d = nullptr;
foreach(Device* id, mDaemon->devicesList()) {
- if (id->isReachable())
+ if (id->isReachable()) {
+ id->requestPair();
d = id;
+ }
}
QVERIFY(d);
QCOMPARE(d->isReachable(), true);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list