From b6c331620d35dc8c16d9b74da4e6ee6531d777c7 Mon Sep 17 00:00:00 2001 From: Aleksandar Sasha Babic Date: Thu, 20 Aug 2009 11:45:56 +0200 Subject: Cleaning test cases. In some situations we had different setup on Symbian platform. Moslty when it comes to the timing issues. We want to revert those where possible. --- tests/auto/qlocalsocket/tst_qlocalsocket.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp index 3c42ecb..bdd2efa 100644 --- a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp @@ -368,7 +368,7 @@ void tst_QLocalSocket::listenAndConnect() QSignalSpy spyReadyRead(socket, SIGNAL(readyRead())); socket->connectToServer(name); -#if defined(QT_LOCALSOCKET_TCP) || defined (Q_OS_SYMBIAN) +#if defined(QT_LOCALSOCKET_TCP) QTest::qWait(250); #endif @@ -494,7 +494,7 @@ void tst_QLocalSocket::sendData() QCOMPARE(server.waitForNewConnection(3000, &timedOut), canListen); -#if defined(QT_LOCALSOCKET_TCP) || defined(Q_OS_SYMBIAN) +#if defined(QT_LOCALSOCKET_TCP) QTest::qWait(250); #endif QVERIFY(!timedOut); @@ -570,9 +570,6 @@ void tst_QLocalSocket::fullPath() LocalSocket socket; socket.connectToServer(serverName); -#if defined (Q_OS_SYMBIAN) - QTest::qWait(250); -#endif QCOMPARE(socket.serverName(), serverName); QCOMPARE(socket.fullServerName(), serverName); @@ -736,7 +733,7 @@ void tst_QLocalSocket::threadedConnection() server.wait(); while (!clients.isEmpty()) { - QVERIFY(clients.first()->wait(30000)); + QVERIFY(clients.first()->wait(3000)); Client *client =clients.takeFirst(); client->terminate(); delete client; -- cgit v0.12