aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-keylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/qt/tests/t-keylist.cpp')
-rw-r--r--lang/qt/tests/t-keylist.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp
index 626d0a7f..8aa59990 100644
--- a/lang/qt/tests/t-keylist.cpp
+++ b/lang/qt/tests/t-keylist.cpp
@@ -23,6 +23,12 @@ private Q_SLOTS:
const QString kId = QLatin1String(keys.front().keyID());
Q_ASSERT (kId == QStringLiteral("2D727CC768697734"));
}
+
+ void initTestCase()
+ {
+ const QString gpgHome = qgetenv("GNUPGHOME");
+ QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set.");
+ }
};
QTEST_MAIN(KeyListTest)