[git] GPGME - branch, master, updated. gpgme-1.6.0-325-gab3fbdb

by Andre Heinecke cvs at cvs.gnupg.org
Mon Sep 5 16:56:08 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  ab3fbdbd05cfd1b039bb5b1eb3941fbb4bcf6307 (commit)
      from  965b842fad6ec6fbd8902f3a32119abcd0728fe4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ab3fbdbd05cfd1b039bb5b1eb3941fbb4bcf6307
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Mon Sep 5 16:54:50 2016 +0200

    qt: Clarify comment and strings in tofuinfo test
    
    * lang/qt/tests/t-tofuinfo.cpp (testTofuSignCount)
    (testTofuKeyList): Ensure distinct messages. Clarify comment.

diff --git a/lang/qt/tests/t-tofuinfo.cpp b/lang/qt/tests/t-tofuinfo.cpp
index f7238f3..5646f70 100644
--- a/lang/qt/tests/t-tofuinfo.cpp
+++ b/lang/qt/tests/t-tofuinfo.cpp
@@ -230,6 +230,12 @@ private Q_SLOTS:
         Key key = keys[0];
         Q_ASSERT(!key.isNull());
 
+        /* As we sign & verify quickly here we need different
+         * messages to avoid having them treated as the same
+         * message if they were created within the same second.
+         * Alternatively we could use the same message and wait
+         * a second between each call. But this would slow down
+         * the testsuite. */
         signAndVerify(QStringLiteral("Hello"), key, 1);
         key.update();
         signAndVerify(QStringLiteral("Hello2"), key, 2);
@@ -258,12 +264,10 @@ private Q_SLOTS:
         auto keyCopy = key;
         keyCopy.update();
         auto sigCnt = keyCopy.userID(0).tofuInfo().signCount();
-        signAndVerify(QStringLiteral("Hello"), keyCopy,
+        signAndVerify(QStringLiteral("Hello5"), keyCopy,
                       sigCnt + 1);
         keyCopy.update();
-        /* For some reason if you remove the " World" part of
-         * the next message the test fails. */
-        signAndVerify(QStringLiteral("Hello World"), keyCopy,
+        signAndVerify(QStringLiteral("Hello6"), keyCopy,
                       sigCnt + 2);
 
         /* Now another one but with tofu */

-----------------------------------------------------------------------

Summary of changes:
 lang/qt/tests/t-tofuinfo.cpp | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list