summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtcpsocket/tst_qtcpsocket.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-04-28 11:02:21 +0300
committerJanne Anttila <janne.anttila@digia.com>2009-04-28 11:02:21 +0300
commit949ad6f6607783aace78f2fbf9c9632a39c37337 (patch)
tree0b4176b42017afe233137d37b81eb3f96a2854b2 /tests/auto/qtcpsocket/tst_qtcpsocket.cpp
parent189118e55fa4d3ac205d78130d2b4694e0fc9b86 (diff)
These tst_qtcpsockets require more time to finish in Symbian OS
The modified test cases are: - disconnectWhileConnecting - disconnectWhileLookingUp
Diffstat (limited to 'tests/auto/qtcpsocket/tst_qtcpsocket.cpp')
-rw-r--r--tests/auto/qtcpsocket/tst_qtcpsocket.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/qtcpsocket/tst_qtcpsocket.cpp
index 0e1ccf34d6..9d75fba405 100644
--- a/tests/auto/qtcpsocket/tst_qtcpsocket.cpp
+++ b/tests/auto/qtcpsocket/tst_qtcpsocket.cpp
@@ -903,8 +903,12 @@ void tst_QTcpSocket::disconnectWhileConnecting()
socket->disconnectFromHost();
}
- connect(socket, SIGNAL(disconnected()), SLOT(exitLoopSlot()));
+ connect(socket, SIGNAL(disconnected()), SLOT(exitLoopSlot()));
+#ifndef Q_OS_SYMBIAN
enterLoop(10);
+#else
+ enterLoop(30);
+#endif
QVERIFY2(!timeout(), "Network timeout");
QVERIFY(socket->state() == QAbstractSocket::UnconnectedState);
if (!closeDirectly) {
@@ -1060,7 +1064,11 @@ void tst_QTcpSocket::disconnectWhileLookingUp()
// let anything queued happen
QEventLoop loop;
+#ifndef Q_OS_SYMBIAN
QTimer::singleShot(50, &loop, SLOT(quit()));
+#else
+ QTimer::singleShot(500, &loop, SLOT(quit()));
+#endif
loop.exec();
// recheck