qt: Initialize library first in tests
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 22 Mar 2017 15:34:29 +0000 (16:34 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 22 Mar 2017 15:43:33 +0000 (16:43 +0100)
* lang/qt/tests/t-support.cpp (QGpgMETest::initTestCase): Initialize
library.

lang/qt/tests/t-support.cpp

index 857d0a3..b3a7a70 100644 (file)
@@ -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.");
 }