summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2011-04-01 16:35:28 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2011-04-06 14:02:43 (GMT)
commit4e9eb911ffc70959d81de01fe9fe4a704cafe3eb (patch)
treef2a43a21fbcc7ebf9de9f13036d3476d741d1970 /tests/auto
parentec41d27565ed0b4d517f30563def135d0b4c7a8d (diff)
downloadQt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.zip
Qt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.tar.gz
Qt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.tar.bz2
fix QLocalSocket::isValid() on Windows
This function always returned false, even if the socket was connected. Task-number: QTBUG-18204 Reviewed-by: Martin Petersson
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qlocalsocket/tst_qlocalsocket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
index a6d4427..77a5574 100644
--- a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
+++ b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
@@ -391,6 +391,8 @@ void tst_QLocalSocket::listenAndConnect()
QVERIFY(socket->fullServerName().contains(name));
sockets.append(socket);
if (canListen) {
+ QVERIFY(socket->waitForConnected());
+ QVERIFY(socket->isValid());
QCOMPARE(socket->errorString(), QString("Unknown error"));
QCOMPARE(socket->error(), QLocalSocket::UnknownSocketError);
QCOMPARE(socket->state(), QLocalSocket::ConnectedState);