TestSocketLineReader: Ensure we provide a more appropiate message if we fail trying to open a connection to the client
A litle irrelevant change :) BTW, I'm encounter this test error on Debian kfreebsd i386: https://buildd.debian.org/status/fetch.php?pkg=kdeconnect&arch=kfreebsd-i386&ver=0.7-1&stamp=1404242653 Maybe someone have a clue on what is happening here :) REVIEW: 119091
This commit is contained in:
parent
fbc749d4cd
commit
c935ea8334
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ void TestSocketLineReader::socketLineReader()
|
|||
}
|
||||
|
||||
QTcpSocket *sock = mServer->nextPendingConnection();
|
||||
|
||||
QVERIFY2(sock != 0, "Could not open a connection to the client");
|
||||
|
||||
mReader = new SocketLineReader(sock, this);
|
||||
connect(mReader, SIGNAL(readyRead()), SLOT(newPackage()));
|
||||
mTimer.start();
|
||||
|
|
Loading…
Reference in a new issue