aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-support.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-03-22 15:34:29 +0000
committerAndre Heinecke <[email protected]>2017-03-22 15:43:33 +0000
commit121873b821636052c10d9e0bd885eb9013c52096 (patch)
treedfcdbb8bd59ee023a8352db0719ab6740b70d1b5 /lang/qt/tests/t-support.cpp
parentpython: Improve Python detection. (diff)
downloadgpgme-121873b821636052c10d9e0bd885eb9013c52096.tar.gz
gpgme-121873b821636052c10d9e0bd885eb9013c52096.zip
qt: Initialize library first in tests
* lang/qt/tests/t-support.cpp (QGpgMETest::initTestCase): Initialize library.
Diffstat (limited to 'lang/qt/tests/t-support.cpp')
-rw-r--r--lang/qt/tests/t-support.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/qt/tests/t-support.cpp b/lang/qt/tests/t-support.cpp
index 857d0a39..b3a7a703 100644
--- a/lang/qt/tests/t-support.cpp
+++ b/lang/qt/tests/t-support.cpp
@@ -34,6 +34,7 @@
#endif
#include "t-support.h"
+#include "context.h"
#include <QTest>
@@ -44,6 +45,7 @@
void QGpgMETest::initTestCase()
{
+ GpgME::initializeLibrary();
const QString gpgHome = qgetenv("GNUPGHOME");
QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set.");
}