diff options
author | Andre Heinecke <[email protected]> | 2016-06-01 08:01:43 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-06-01 11:48:28 +0000 |
commit | 9d6f85bd25e51445f1776b498875e77b529311b1 (patch) | |
tree | 6a1cad82f061ed745fe14779f4527b5e6c4229de /lang/qt/tests/t-ownertrust.cpp | |
parent | tests: Fix notation tests. (diff) | |
download | gpgme-9d6f85bd25e51445f1776b498875e77b529311b1.tar.gz gpgme-9d6f85bd25e51445f1776b498875e77b529311b1.zip |
Qt: Fix debug output in t-ownertrust
* lang/qt/tests/t-ownertrust.cpp (testChangeOwnerTrust): Remove
general debug of trust level. Add debug output for error.
Diffstat (limited to 'lang/qt/tests/t-ownertrust.cpp')
-rw-r--r-- | lang/qt/tests/t-ownertrust.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp index d4385bf3..eb6c3db3 100644 --- a/lang/qt/tests/t-ownertrust.cpp +++ b/lang/qt/tests/t-ownertrust.cpp @@ -58,12 +58,14 @@ private Q_SLOTS: Q_ASSERT (!result.error()); Q_ASSERT (keys.size() == 1); Key key = keys.front(); - qDebug() << "Trust is: " << key.ownerTrust(); Q_ASSERT (key.ownerTrust() == Key::Unknown); ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob(); connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e) { + if (e) { + qDebug() << "Error in result: " << e.asString(); + } Q_ASSERT(!e); Q_EMIT asyncDone(); }); |