summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-08-13 15:17:42 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-13 17:08:13 +0200
commit983fa9b5cb8494717acc2903000f85d53848da9a (patch)
treefd91ab3999e707a944b99c712bb160eda86bf3ab /tests
parent0e3ede3d176e062cec5680ca60978af2872b16a3 (diff)
test: Skip some more qsslsocket flaky tests
Task-number: QTBUG-29941 Change-Id: Iaf1c4834ef36db284464184639a1ab00928510cf Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
index de421a82c2..85b60686d6 100644
--- a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
@@ -910,7 +910,8 @@ void tst_QSslSocket::protocol()
socket->abort();
QCOMPARE(socket->protocol(), QSsl::SslV2);
socket->connectToHost(QtNetworkSettings::serverName(), 443);
- QVERIFY2(socket->waitForConnected(), qPrintable(socket->errorString()));
+ if (setProxy && !socket->waitForConnected())
+ QSKIP("Skipping flaky test - See QTBUG-29941");
socket->startClientEncryption();
if (setProxy && !socket->waitForEncrypted())
QSKIP("Skipping flaky test - See QTBUG-29941");
@@ -1969,7 +1970,8 @@ void tst_QSslSocket::disconnectFromHostWhenConnecting()
QCOMPARE(state, socket->state());
QVERIFY(socket->state() == QAbstractSocket::HostLookupState ||
socket->state() == QAbstractSocket::ConnectingState);
- QVERIFY(socket->waitForDisconnected(10000));
+ if (!socket->waitForDisconnected(10000))
+ QSKIP("Skipping flaky test - See QTBUG-29941");
QCOMPARE(socket->state(), QAbstractSocket::UnconnectedState);
// we did not call close, so the socket must be still open
QVERIFY(socket->isOpen());
@@ -2080,7 +2082,8 @@ void tst_QSslSocket::ignoreSslErrorsList()
socket.connectToHostEncrypted(QtNetworkSettings::serverName(), 443);
bool expectEncryptionSuccess = (expectedSslErrorSignalCount == 0);
- QCOMPARE(socket.waitForEncrypted(10000), expectEncryptionSuccess);
+ if (socket.waitForEncrypted(10000) != expectEncryptionSuccess)
+ QSKIP("Skipping flaky test - See QTBUG-29941");
QCOMPARE(sslErrorsSpy.count(), expectedSslErrorSignalCount);
}
@@ -2132,7 +2135,9 @@ void tst_QSslSocket::readFromClosedSocket()
socket->write("\n");
socket->waitForBytesWritten();
socket->waitForReadyRead();
- QVERIFY(socket->state() == QAbstractSocket::ConnectedState);
+ QFETCH_GLOBAL(bool, setProxy);
+ if (setProxy && (socket->state() != QAbstractSocket::ConnectedState))
+ QSKIP("Skipping flaky test - See QTBUG-29941");
QVERIFY(socket->bytesAvailable());
socket->close();
QVERIFY(!socket->bytesAvailable());