summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-01-13 16:47:15 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-01-14 00:15:16 +0100
commiteb2a7738a431a7510cdcc69250a4713c1d3cd490 (patch)
tree25cd87957bd4b46ed185ab05d3f8e6be8173ad0b /tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
parent9dcbf2cf5cbdfe35637ff323fd44729badaae811 (diff)
Skip instead of fail tests when test server is not available
We were being inconsistent in how we handled this, some tests skipping while others using QVERIFY. It makes more sense to skip the tests, since the problem is a missing pre-condition of the test, not the test itself being bad or exposing real failures in the implementation. Change-Id: I20eacfe12dbce0b0d926e48cbe2d2772819fa4a5 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp')
-rw-r--r--tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp b/tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
index c01c673604..afd0c720a2 100644
--- a/tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/benchmarks/network/ssl/qsslsocket/tst_qsslsocket.cpp
@@ -63,7 +63,8 @@ tst_QSslSocket::~tst_QSslSocket()
void tst_QSslSocket::initTestCase()
{
- QVERIFY(QtNetworkSettings::verifyTestNetworkSettings());
+ if (!QtNetworkSettings::verifyTestNetworkSettings())
+ QSKIP("No network test server available");
}
void tst_QSslSocket::init()