tst_QSslKey: remove blacklist

And do not run the test with QSslSocket::supportsSsl() returns false -
this may mean unresolved symbols and thus missing functionality,
like i2d_X509 etc. This also makes cases more like other, that already
had those checks.

Fixes: QTBUG-87386
Change-Id: If4e9a650ca325b6f70956f532891a4c1d50465c0
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Timur Pocheptsov 2020-11-30 13:03:57 +01:00
parent d545fbb61b
commit bf7cec737f
2 changed files with 6 additions and 6 deletions

View File

@ -6,9 +6,3 @@ rhel
rhel
[toPemOrDer]
rhel
# QTBUG-87386
[passphraseChecks]
android
[noPassphraseChecks]
android

View File

@ -515,6 +515,9 @@ void tst_QSslKey::toEncryptedPemOrDer()
void tst_QSslKey::passphraseChecks_data()
{
if (!QSslSocket::supportsSsl())
QSKIP("This test requires a working TLS library");
QTest::addColumn<QString>("fileName");
QTest::addColumn<QByteArray>("passphrase");
@ -574,6 +577,9 @@ void tst_QSslKey::passphraseChecks()
void tst_QSslKey::noPassphraseChecks()
{
if (!QSslSocket::supportsSsl())
QSKIP("This test requires a working TLS library");
// be sure and check a key without passphrase too
QString fileName(testDataDir + "rsa-without-passphrase.pem");
QFile keyFile(fileName);