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-ownertrust.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-ownertrust.cpp')
-rw-r--r-- | lang/qt/tests/t-ownertrust.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp index db863b23..f2fa3c8e 100644 --- a/lang/qt/tests/t-ownertrust.cpp +++ b/lang/qt/tests/t-ownertrust.cpp @@ -62,10 +62,10 @@ 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(); - Q_ASSERT (key.ownerTrust() == Key::Unknown); + QVERIFY (key.ownerTrust() == Key::Unknown); ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob(); connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e) @@ -73,28 +73,28 @@ private Q_SLOTS: if (e) { qDebug() << "Error in result: " << e.asString(); } - Q_ASSERT(!e); + QVERIFY(!e); Q_EMIT asyncDone(); }); job2->start(key, Key::Ultimate); QSignalSpy spy (this, SIGNAL(asyncDone())); - Q_ASSERT(spy.wait()); + QVERIFY(spy.wait()); job = openpgp()->keyListJob(false, true, true); result = job->exec(QStringList() << QStringLiteral("[email protected]"), false, keys); delete job; key = keys.front(); - Q_ASSERT (key.ownerTrust() == Key::Ultimate); + QVERIFY (key.ownerTrust() == Key::Ultimate); ChangeOwnerTrustJob *job3 = openpgp()->changeOwnerTrustJob(); connect(job3, &ChangeOwnerTrustJob::result, this, [this](Error e) { - Q_ASSERT(!e); + QVERIFY(!e); Q_EMIT asyncDone(); }); job3->start(key, Key::Unknown); - Q_ASSERT(spy.wait()); + QVERIFY(spy.wait()); job = openpgp()->keyListJob(false, true, true); result = job->exec(QStringList() << QStringLiteral("[email protected]"), @@ -102,7 +102,7 @@ private Q_SLOTS: delete job; key = keys.front(); - Q_ASSERT (key.ownerTrust() == Key::Unknown); + QVERIFY (key.ownerTrust() == Key::Unknown); } }; |