diff options
| author | Andre Heinecke <[email protected]> | 2017-01-11 15:20:31 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2017-01-11 15:20:31 +0000 | 
| commit | 56926c9b5012e8135541a933af1d69c5a81f02b3 (patch) | |
| tree | 76c854dd686084103c5d35ce4e56c95c23bb544d /lang/qt/tests/t-various.cpp | |
| parent | qt: Add test for uid functions (diff) | |
| download | gpgme-56926c9b5012e8135541a933af1d69c5a81f02b3.tar.gz gpgme-56926c9b5012e8135541a933af1d69c5a81f02b3.zip  | |
qt: Clean up test dirs on failure
* t-encrypt.cpp,
t-keylist.cpp,
t-keylocate.cpp,
t-ownertrust.cpp,
t-tofuinfo.cpp,
t-various.cpp,
t-verify.cpp,
t-wkspublish.cpp: Use QVERIFY instead of Q_ASSERT
Diffstat (limited to 'lang/qt/tests/t-various.cpp')
| -rw-r--r-- | lang/qt/tests/t-various.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/qt/tests/t-various.cpp b/lang/qt/tests/t-various.cpp index 330e62d8..aa45b622 100644 --- a/lang/qt/tests/t-various.cpp +++ b/lang/qt/tests/t-various.cpp @@ -66,15 +66,15 @@ private Q_SLOTS:          GpgME::KeyListResult result = job->exec(QStringList() << QStringLiteral("[email protected]"),                                                  false, keys);          delete job; -        Q_ASSERT (!result.error()); -        Q_ASSERT (keys.size() == 1); +        QVERIFY (!result.error()); +        QVERIFY (keys.size() == 1);          Key key = keys.front();          QVERIFY (key.numUserIDs() == 3);          const char uid[] = "Foo Bar (with comment) <[email protected]>";          auto ctx = Context::createForProtocol(key.protocol()); -        Q_ASSERT (ctx); +        QVERIFY (ctx);          TestPassphraseProvider provider;          ctx->setPassphraseProvider(&provider);          ctx->setPinentryMode(Context::PinentryLoopback); @@ -106,14 +106,14 @@ private Q_SLOTS:                  break;              }          } -        Q_ASSERT(id_revoked); +        QVERIFY(id_revoked);      }      void initTestCase()      {          QGpgMETest::initTestCase();          const QString gpgHome = qgetenv("GNUPGHOME"); -        Q_ASSERT(copyKeyrings(gpgHome, mDir.path())); +        QVERIFY(copyKeyrings(gpgHome, mDir.path()));          qputenv("GNUPGHOME", mDir.path().toUtf8());      }  | 
