summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsslsocket/tst_qsslsocket.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-05-08 08:27:45 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-05-12 11:11:22 (GMT)
commit31e420abad4816d709af9dd7f839070810796bcd (patch)
tree8bc1624b9374ecec74dbe5cab4b19cbd3b83fd51 /tests/auto/qsslsocket/tst_qsslsocket.cpp
parent1db09452d0607d789056559ec59edfe91b3def84 (diff)
downloadQt-31e420abad4816d709af9dd7f839070810796bcd.zip
Qt-31e420abad4816d709af9dd7f839070810796bcd.tar.gz
Qt-31e420abad4816d709af9dd7f839070810796bcd.tar.bz2
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 b9725fd..432092a 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))