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
This commit is contained in:
parent
44bb3c62cb
commit
d7e10b2a71
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user