Skip to content

Commit

Permalink
Disable QSslDiffieHellmanParameters tests for QT_NO_SSL builds
Browse files Browse the repository at this point in the history
Change-Id: Ie0b7e9c819ddd1627709f64c30c8d2374bf50c9b
Reviewed-by: Timur Pocheptsov <[email protected]>
  • Loading branch information
misery committed Jun 10, 2016
1 parent 04e224b commit 9466d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,19 @@ class tst_QSslDiffieHellmanParameters : public QObject
{
Q_OBJECT

#ifndef QT_NO_SSL
private Q_SLOTS:
void constructionEmpty();
void constructionDefault();
void constructionDER();
void constructionPEM();
void unsafe512Bits();
void unsafeNonPrime();
#endif
};

#ifndef QT_NO_SSL

void tst_QSslDiffieHellmanParameters::constructionEmpty()
{
QSslDiffieHellmanParameters dh;
Expand Down Expand Up @@ -153,5 +157,7 @@ void tst_QSslDiffieHellmanParameters::unsafeNonPrime()
#endif
}

#endif // QT_NO_SSL

QTEST_MAIN(tst_QSslDiffieHellmanParameters)
#include "tst_qssldiffiehellmanparameters.moc"
4 changes: 2 additions & 2 deletions tests/auto/network/ssl/ssl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ TEMPLATE=subdirs
SUBDIRS=\
qsslcertificate \
qsslcipher \
qssldiffiehellmanparameters \
qsslellipticcurve \
qsslerror \
qsslkey \
Expand All @@ -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
}
}

0 comments on commit 9466d0e

Please sign in to comment.