diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-05-28 11:33:57 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-06-03 20:08:32 +0200 |
commit | fd217e7f005d1825d95d73a15a075703bb6346c6 (patch) | |
tree | 4a5170b0987c14c98387d31d9f698a6f421042bb /tests/auto/network/ssl/qdtls | |
parent | 7920c03ff1954355d588baa466820a60afc9b587 (diff) |
QDtls(Cookie) autotests - use the proper API to detect DTLS support
Instead of relying on some string comparisons and the current knowledge
of which backend supports DTLS, use the proper API we already have in
place to test if a particular class is supported by the active backend.
Change-Id: I58ca0f7b7fcef68ec375cd64b83e51d4335817da
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network/ssl/qdtls')
-rw-r--r-- | tests/auto/network/ssl/qdtls/tst_qdtls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/ssl/qdtls/tst_qdtls.cpp b/tests/auto/network/ssl/qdtls/tst_qdtls.cpp index d11fc6e99a..dd380923df 100644 --- a/tests/auto/network/ssl/qdtls/tst_qdtls.cpp +++ b/tests/auto/network/ssl/qdtls/tst_qdtls.cpp @@ -171,7 +171,7 @@ QT_BEGIN_NAMESPACE void tst_QDtls::initTestCase() { - if (!TlsAux::activeBackendSupportsDtls()) + if (!TlsAux::classImplemented(QSsl::ImplementedClass::Dtls)) QSKIP("The active TLS backend does not support DTLS"); certDirPath = QFileInfo(QFINDTESTDATA("certs")).absolutePath(); |