qt: Initialize library first in tests
* lang/qt/tests/t-support.cpp (QGpgMETest::initTestCase): Initialize library.
This commit is contained in:
parent
104635eb50
commit
121873b821
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user