[Pkg-gnupg-commit] [gpgme] 151/412: Qt: Fix debug output in t-ownertrust

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 9d6f85bd25e51445f1776b498875e77b529311b1
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Jun 1 10:01:43 2016 +0200

    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.
---
 lang/qt/tests/t-ownertrust.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp
index d4385bf..eb6c3db 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();
         });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list