diff options
Diffstat (limited to 'lang/qt/tests/t-keylist.cpp')
-rw-r--r-- | lang/qt/tests/t-keylist.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp index 38d315f5..adc997aa 100644 --- a/lang/qt/tests/t-keylist.cpp +++ b/lang/qt/tests/t-keylist.cpp @@ -55,6 +55,7 @@ private Q_SLOTS: std::vector<GpgME::Key> keys; GpgME::KeyListResult result = job->exec(QStringList() << QStringLiteral("[email protected]"), false, keys); + delete job; Q_ASSERT (!result.error()); Q_ASSERT (keys.size() == 1); const QString kId = QLatin1String(keys.front().keyID()); @@ -104,6 +105,11 @@ private Q_SLOTS: const QString gpgHome = qgetenv("GNUPGHOME"); QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set."); } + + void cleanupTestCase() + { + QCoreApplication::sendPostedEvents(); + } }; QTEST_MAIN(KeyListTest) |