[Pkg-gnupg-commit] [gpgme] 11/53: tests: Fix blunder.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Oct 24 19:26:48 UTC 2016


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

dkg pushed a commit to branch experimental
in repository gpgme.

commit a6e9eefb23e57e14afaead5c896452360bdaeb6f
Author: Justus Winter <justus at g10code.com>
Date:   Tue Sep 27 12:49:24 2016 +0200

    tests: Fix blunder.
    
    --
    Fixes-commit: a423603f
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/tests/t-sig-notation.py | 2 +-
 tests/gpg/t-sig-notation.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py
index 68f9c08..eb5b111 100755
--- a/lang/python/tests/t-sig-notation.py
+++ b/lang/python/tests/t-sig-notation.py
@@ -36,7 +36,7 @@ expected_notations = {
 with core.Context() as c:
     version = c.engine_info.version
     have_correct_sig_data = not (version.startswith("1.")
-                                 version.startswith("2.0.")
+                                 or version.startswith("2.0.")
                                  or version == "2.1.1"
                                  or (version.startswith("2.1.1")
                                      and version[5] < '3'))
diff --git a/tests/gpg/t-sig-notation.c b/tests/gpg/t-sig-notation.c
index 091a26e..052e179 100644
--- a/tests/gpg/t-sig-notation.c
+++ b/tests/gpg/t-sig-notation.c
@@ -151,7 +151,7 @@ main (int argc, char *argv[])
      correctly.  */
   have_correct_sig_data =
     ! (strncmp ("1.", engine_info->version, 2) == 0
-       || strncmp ("2.0.", version, 4) == 0
+       || strncmp ("2.0.", engine_info->version, 4) == 0
        || (strncmp ("2.1.1", engine_info->version, 5) == 0
            && (engine_info->version[5] == 0
                || engine_info->version[5] < '3')));

-- 
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