Disable QSslDiffieHellmanParameters tests for QT_NO_SSL builds
Change-Id: Ie0b7e9c819ddd1627709f64c30c8d2374bf50c9b Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>bb10
parent
04e224b19a
commit
9466d0e633
|
|
@ -46,6 +46,7 @@ class tst_QSslDiffieHellmanParameters : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
|
||||
#ifndef QT_NO_SSL
|
||||
private Q_SLOTS:
|
||||
void constructionEmpty();
|
||||
void constructionDefault();
|
||||
|
|
@ -53,8 +54,11 @@ private Q_SLOTS:
|
|||
void constructionPEM();
|
||||
void unsafe512Bits();
|
||||
void unsafeNonPrime();
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifndef QT_NO_SSL
|
||||
|
||||
void tst_QSslDiffieHellmanParameters::constructionEmpty()
|
||||
{
|
||||
QSslDiffieHellmanParameters dh;
|
||||
|
|
@ -153,5 +157,7 @@ void tst_QSslDiffieHellmanParameters::unsafeNonPrime()
|
|||
#endif
|
||||
}
|
||||
|
||||
#endif // QT_NO_SSL
|
||||
|
||||
QTEST_MAIN(tst_QSslDiffieHellmanParameters)
|
||||
#include "tst_qssldiffiehellmanparameters.moc"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ TEMPLATE=subdirs
|
|||
SUBDIRS=\
|
||||
qsslcertificate \
|
||||
qsslcipher \
|
||||
qssldiffiehellmanparameters \
|
||||
qsslellipticcurve \
|
||||
qsslerror \
|
||||
qsslkey \
|
||||
|
|
@ -22,6 +21,7 @@ winrt: SUBDIRS -= \
|
|||
|
||||
contains(QT_CONFIG, ssl) | contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
|
||||
contains(QT_CONFIG, private_tests) {
|
||||
SUBDIRS += qasn1element
|
||||
SUBDIRS += qasn1element \
|
||||
qssldiffiehellmanparameters
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue