summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-09-10 16:38:43 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-09-11 07:47:59 (GMT)
commit22bbc21ba4c838d6afe000e07f70b470acc87d8b (patch)
tree46589aa6d16c5d14dc4d9fe261cfcd06dfaa8bbf /tests/auto/qlocalsocket/tst_qlocalsocket.cpp
parentfeb1351592b55b2a97db737b91f301b69f42cdc9 (diff)
downloadQt-22bbc21ba4c838d6afe000e07f70b470acc87d8b.zip
Qt-22bbc21ba4c838d6afe000e07f70b470acc87d8b.tar.gz
Qt-22bbc21ba4c838d6afe000e07f70b470acc87d8b.tar.bz2
make tst_QLocalSocket::writeToClientAndDisconnect even more robust
no more qApp->processEvents() ! Reviewed-by: ossi
Diffstat (limited to 'tests/auto/qlocalsocket/tst_qlocalsocket.cpp')
-rw-r--r--tests/auto/qlocalsocket/tst_qlocalsocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
index c0d870f..1180d4d 100644
--- a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
+++ b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
@@ -895,9 +895,9 @@ void tst_QLocalSocket::writeToClientAndDisconnect()
QCOMPARE(clientSocket->write(buffer, sizeof(buffer)), (qint64)sizeof(buffer));
clientSocket->waitForBytesWritten();
clientSocket->disconnectFromServer();
- qApp->processEvents(); // give the socket the chance to receive data
+ QVERIFY(client.waitForReadyRead());
QCOMPARE(client.read(buffer, sizeof(buffer)), (qint64)sizeof(buffer));
- qApp->processEvents(); // give the socket the chance to close itself
+ QVERIFY(client.waitForDisconnected());
QCOMPARE(client.state(), QLocalSocket::UnconnectedState);
}