diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-08 08:27:45 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-12 11:11:22 (GMT) |
commit | 31e420abad4816d709af9dd7f839070810796bcd (patch) | |
tree | 8bc1624b9374ecec74dbe5cab4b19cbd3b83fd51 /tests/auto/qsslsocket | |
parent | 1db09452d0607d789056559ec59edfe91b3def84 (diff) | |
download | Qt-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')
-rw-r--r-- | tests/auto/qsslsocket/tst_qsslsocket.cpp | 2 |
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)) |