aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2016-07-19 14:56:28 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2016-07-19 17:58:41 +0000
commit8b993de7d30f268e101bdcc383a8c6b1ebc085ae (patch)
tree9e59a55ab1e7657f6f6358af57ef10ac6a6bf354 /tests
parent3245a746a22ab58f06c5105ea11ce083703779d4 (diff)
Make QmlLive ready for the Qt CI
Enabled the ipc unit test again Change-Id: Ib518b3c6afffc1b21d932cd3438d75b39f5b2f67 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/testipc/testipc.pro16
-rw-r--r--tests/testipc/tst_testipc.cpp4
2 files changed, 18 insertions, 2 deletions
diff --git a/tests/testipc/testipc.pro b/tests/testipc/testipc.pro
new file mode 100644
index 0000000..602225f
--- /dev/null
+++ b/tests/testipc/testipc.pro
@@ -0,0 +1,16 @@
+QT += testlib core network
+
+TARGET = tst_testipc
+CONFIG += testcase
+
+include($$PWD/../../src/ipc/ipc.pri)
+INCLUDEPATH += $$PWD/../../src
+
+TEMPLATE = app
+
+SOURCES += \
+ tst_testipc.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD/\\\"
+TESTDATA = testdata/*
+
diff --git a/tests/testipc/tst_testipc.cpp b/tests/testipc/tst_testipc.cpp
index 24cc1ba..68628a0 100644
--- a/tests/testipc/tst_testipc.cpp
+++ b/tests/testipc/tst_testipc.cpp
@@ -65,7 +65,7 @@ private Q_SLOTS:
peer1.listen(10234);
connect(&peer1, SIGNAL(received(QString,QByteArray)), this, SLOT(handleCall(QString,QByteArray)));
IpcClient peer2;
- peer2.setDestination("127.0.0.1", 10234);
+ peer2.connectToServer("127.0.0.1", 10234);
QByteArray bytes;
QDataStream stream(&bytes, QIODevice::ReadWrite);
stream << QString("Hello IPC!");
@@ -80,7 +80,7 @@ private Q_SLOTS:
peer1.listen(10234);
connect(&peer1, SIGNAL(received(QString,QByteArray)), this, SLOT(handleCall(QString,QByteArray)));
IpcClient peer2;
- peer2.setDestination("127.0.0.1", 10234);
+ peer2.connectToServer("127.0.0.1", 10234);
QByteArray bytes;
QDataStream stream(&bytes, QIODevice::ReadWrite);
QString filePath("tst_testipc.cpp");