From 121873b821636052c10d9e0bd885eb9013c52096 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 22 Mar 2017 16:34:29 +0100 Subject: [PATCH] qt: Initialize library first in tests * lang/qt/tests/t-support.cpp (QGpgMETest::initTestCase): Initialize library. --- lang/qt/tests/t-support.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 @@ -44,6 +45,7 @@ void QGpgMETest::initTestCase() { + GpgME::initializeLibrary(); const QString gpgHome = qgetenv("GNUPGHOME"); QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set."); }