summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsslsocket/tst_qsslsocket.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-05-08 10:27:45 +0200
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-05-12 13:11:22 +0200
commit31e420abad4816d709af9dd7f839070810796bcd (patch)
tree8bc1624b9374ecec74dbe5cab4b19cbd3b83fd51 /tests/auto/qsslsocket/tst_qsslsocket.cpp
parent1db09452d0607d789056559ec59edfe91b3def84 (diff)
tst_qsslsocket: Added assertions that make test fail if certs not found
Diffstat (limited to 'tests/auto/qsslsocket/tst_qsslsocket.cpp')
-rw-r--r--tests/auto/qsslsocket/tst_qsslsocket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp
index b9725fd2e0..432092a690 100644
--- a/tests/auto/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp
@@ -1286,6 +1286,8 @@ protected:
// delayed start of encryption
QTest::qSleep(100);
QSslSocket *socket = server.socket;
+ Q_ASSERT(socket);
+ Q_ASSERT(socket->isValid());
socket->ignoreSslErrors();
socket->startServerEncryption();
if (!socket->waitForEncrypted(2000))