summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 10:26:00 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 10:46:43 +1000
commitd7e10b2a71f1fa196472544309dc59488229ebeb (patch)
treedea9a5f5945de0338c4fceae498bcdfbe7b8021e /tests
parent44bb3c62cbe785e7fc9c2455de308717894e6a6b (diff)
Remove Q_ASSERT from qsslsocket autotest.
Make the server thread exit early if the socket is invalid. This will make the test fail gracefully instead of crashing. Change-Id: Ia9564c94dd32d65e6e9bdb4a2410f1512409546c Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit b9b3ced2eafe13e491d5af5ad7432733941bfd8d) Conflicts: tests/auto/qsslsocket/tst_qsslsocket.cpp
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsslsocket/tst_qsslsocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp
index b508d4795b..507af5ebd5 100644
--- a/tests/auto/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp
@@ -1565,8 +1565,8 @@ protected:
// delayed start of encryption
QTest::qSleep(100);
QSslSocket *socket = server.socket;
- QVERIFY(socket);
- QVERIFY(socket->isValid());
+ if (!socket || !socket->isValid())
+ return; // error
socket->ignoreSslErrors();
socket->startServerEncryption();
if (!socket->waitForEncrypted(2000))