diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-04-28 08:02:21 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-04-28 08:02:21 (GMT) |
commit | 949ad6f6607783aace78f2fbf9c9632a39c37337 (patch) | |
tree | 0b4176b42017afe233137d37b81eb3f96a2854b2 /tests | |
parent | 189118e55fa4d3ac205d78130d2b4694e0fc9b86 (diff) | |
download | Qt-949ad6f6607783aace78f2fbf9c9632a39c37337.zip Qt-949ad6f6607783aace78f2fbf9c9632a39c37337.tar.gz Qt-949ad6f6607783aace78f2fbf9c9632a39c37337.tar.bz2 |
These tst_qtcpsockets require more time to finish in Symbian OS
The modified test cases are:
- disconnectWhileConnecting
- disconnectWhileLookingUp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtcpsocket/tst_qtcpsocket.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/qtcpsocket/tst_qtcpsocket.cpp index 0e1ccf3..9d75fba 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 |