qt: Initialize library first in tests

* lang/qt/tests/t-support.cpp (QGpgMETest::initTestCase): Initialize
library.
This commit is contained in:
Andre Heinecke 2017-03-22 16:34:29 +01:00
parent 104635eb50
commit 121873b821
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View 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.");
}