diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-05-22 12:41:27 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-05-22 12:41:27 (GMT) |
commit | d85e7bbbabf4383337bd3592f32d337246224175 (patch) | |
tree | 114bf69b1e13dce440b6a732300acd45aa5c338f /tests/auto/qsslsocket/tst_qsslsocket.cpp | |
parent | fb8e52465c3f6f9ce4535dfaaffe5c5237b8d88a (diff) | |
download | Qt-d85e7bbbabf4383337bd3592f32d337246224175.zip Qt-d85e7bbbabf4383337bd3592f32d337246224175.tar.gz Qt-d85e7bbbabf4383337bd3592f32d337246224175.tar.bz2 |
Fixed qsslsocket auto test compilation for Symbian.
Diffstat (limited to 'tests/auto/qsslsocket/tst_qsslsocket.cpp')
-rw-r--r-- | tests/auto/qsslsocket/tst_qsslsocket.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp index 59857e5..6147551 100644 --- a/tests/auto/qsslsocket/tst_qsslsocket.cpp +++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp @@ -76,6 +76,10 @@ Q_DECLARE_METATYPE(QSslError) #define QSSLSOCKET_CERTUNTRUSTED_WORKAROUND #endif +#ifdef Q_OS_SYMBIAN +#define SRCDIR "" +#endif + #ifndef QT_NO_OPENSSL class QSslSocketPtr: public QSharedPointer<QSslSocket> { @@ -528,17 +532,17 @@ void tst_QSslSocket::sslErrors() socket->connectToHostEncrypted(host, port); socket->waitForEncrypted(5000); - SslErrorList list; + SslErrorList output; foreach (QSslError error, socket->sslErrors()) { //printf("error = %s\n", error.errorString().toAscii().data()); - list << error.error(); + output << error.error(); } #ifdef QSSLSOCKET_CERTUNTRUSTED_WORKAROUND if (output.last() == QSslError::CertificateUntrusted) output.takeLast(); #endif - QCOMPARE(list, errors); + QCOMPARE(output, expected); } void tst_QSslSocket::addCaCertificate() |