diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2009-10-28 13:14:25 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2009-10-28 14:50:41 (GMT) |
commit | 138e8c17767959c183b3e00e3fb364ab5b6fbdfd (patch) | |
tree | 95252fb9f139efe67c304a5cc47bd708b201d750 /tests/auto/qlocalsocket/tst_qlocalsocket.cpp | |
parent | 5b4b6b2be7b901ef9a29c37431998034730fa3d3 (diff) | |
download | Qt-138e8c17767959c183b3e00e3fb364ab5b6fbdfd.zip Qt-138e8c17767959c183b3e00e3fb364ab5b6fbdfd.tar.gz Qt-138e8c17767959c183b3e00e3fb364ab5b6fbdfd.tar.bz2 |
QLocalServer: block indefinitely when timeout value is -1
... as described in the documentation. Furthermore:
* use qt_safe_select to timeout correctly
* return immediately when timeout value is 0
Reviewed-by: Oswald Buddenhagen
Diffstat (limited to 'tests/auto/qlocalsocket/tst_qlocalsocket.cpp')
-rw-r--r-- | tests/auto/qlocalsocket/tst_qlocalsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp index be39d00..ab7b0ac 100644 --- a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp @@ -976,7 +976,7 @@ void tst_QLocalSocket::writeOnlySocket() #if defined(Q_OS_SYMBIAN) QTest::qWait(250); #endif - QVERIFY(server.waitForNewConnection()); + QVERIFY(server.waitForNewConnection(200)); QLocalSocket* serverSocket = server.nextPendingConnection(); QVERIFY(serverSocket); |