summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2022-09-30 09:02:50 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2022-09-30 09:35:38 +0200
commitee85f65b8e063921e7fc3c1899e70ba5de289b95 (patch)
tree0fa80608d502f2405bcbd8291b598b40b3634290 /tests/auto/network
parentbdadc3340c1656980983ea4acade4d781d750bef (diff)
tst_qsslcertificate: remove ifery which breaks the test
In the presence of QT_CONFIG(opensslv30). Fixes: QTBUG-107027 Change-Id: I481db3cdf3bbb1aa7127cc5498f0c0217df8c35b Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r--tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp b/tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp
index 20a84b3077..d4a1f510a9 100644
--- a/tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp
+++ b/tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp
@@ -110,13 +110,8 @@ void tst_QSslCertificate::initTestCase()
testDataDir = QCoreApplication::applicationDirPath();
if (!testDataDir.endsWith(QLatin1String("/")))
testDataDir += QLatin1String("/");
-#if QT_CONFIG(opensslv11)
- // In the presence of 'openssl' backend, QSslSocket will
- // select 'openssl' as the default one.
+
isNonOpenSslTls = QSslSocket::activeBackend() != QStringLiteral("openssl");
-#else
- isNonOpenSslTls = true;
-#endif // QT_CONFIG(ssl)
QDir dir(testDataDir + "certificates");
QFileInfoList fileInfoList = dir.entryInfoList(QDir::Files | QDir::Readable);