summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-06 12:21:02 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-06 12:36:58 (GMT)
commit2b4c35d66eb4f787b869939bef63a5d7246ffa62 (patch)
tree56fb426a776e9e4b1399b8caea144afc60dcb4d3 /tests/auto/networkselftest
parentb65fd82299689a1f353e16caa7d1c896b838762a (diff)
downloadQt-2b4c35d66eb4f787b869939bef63a5d7246ffa62.zip
Qt-2b4c35d66eb4f787b869939bef63a5d7246ffa62.tar.gz
Qt-2b4c35d66eb4f787b869939bef63a5d7246ffa62.tar.bz2
tst_networkselftest: Also check for SSL support
We want all our auto test machines to have OpenSSL. Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto/networkselftest')
-rw-r--r--tests/auto/networkselftest/tst_networkselftest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/networkselftest/tst_networkselftest.cpp b/tests/auto/networkselftest/tst_networkselftest.cpp
index a09d998..f13bcad 100644
--- a/tests/auto/networkselftest/tst_networkselftest.cpp
+++ b/tests/auto/networkselftest/tst_networkselftest.cpp
@@ -80,6 +80,9 @@ private slots:
void httpProxyNtlmAuth();
void socks5Proxy();
void socks5ProxyAuth();
+
+ // ssl supported test
+ void supportsSsl();
};
class Chat
@@ -717,5 +720,14 @@ void tst_NetworkSelfTest::socks5ProxyAuth()
);
}
+void tst_NetworkSelfTest::supportsSsl()
+{
+#ifdef QT_NO_OPENSSL
+ QFAIL("SSL not compiled in");
+#else
+ QVERIFY(QSslSocket::supportsSsl());
+#endif
+}
+
QTEST_MAIN(tst_NetworkSelfTest)
#include "tst_networkselftest.moc"