Skip to content
Permalink
Browse files

[auth] Skip unit tests if qca-ossl plugin is missing

  • Loading branch information
dakcarto committed Sep 26, 2015
1 parent 05a28b8 commit dd9b37b4c9fd2bc0f5bab8fe44b7c025a163ce37
Showing with 5 additions and 1 deletion.
  1. +3 −0 tests/src/core/testqgsauthconfig.cpp
  2. +2 −1 tests/src/core/testqgsauthcrypto.cpp
@@ -19,6 +19,7 @@
#include <QStringList>

#include "qgsapplication.h"
#include "qgsauthcrypto.h"
#include "qgsauthconfig.h"

/** \ingroup UnitTests
@@ -50,6 +51,8 @@ void TestQgsAuthConfig::initTestCase()
{
QgsApplication::init();
QgsApplication::initQgis();
if ( QgsAuthCrypto::isDisabled() )
QSKIP( "QCA's qca-ossl plugin is missing, skipping test case", SkipAll );
}

void TestQgsAuthConfig::cleanupTestCase()
@@ -82,7 +82,8 @@ void TestQgsAuthCrypto::initTestCase()
{
QgsApplication::init();
QgsApplication::initQgis();
QVERIFY2( !QgsAuthCrypto::isDisabled(), "QCA's qca-ossl plugin is missing, skipping test" );
if ( QgsAuthCrypto::isDisabled() )
QSKIP( "QCA's qca-ossl plugin is missing, skipping test case", SkipAll );
}

void TestQgsAuthCrypto::cleanupTestCase()

0 comments on commit dd9b37b

Please sign in to comment.
You can’t perform that action at this time.