aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-27 10:49:24 +0000
committerJustus Winter <[email protected]>2016-09-27 10:49:24 +0000
commita6e9eefb23e57e14afaead5c896452360bdaeb6f (patch)
tree18043d3c3271678aba66db71061e8bf7087803d7
parentClarify licensing (diff)
downloadgpgme-a6e9eefb23e57e14afaead5c896452360bdaeb6f.tar.gz
gpgme-a6e9eefb23e57e14afaead5c896452360bdaeb6f.zip
tests: Fix blunder.
-- Fixes-commit: a423603f Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-xlang/python/tests/t-sig-notation.py2
-rw-r--r--tests/gpg/t-sig-notation.c2
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 68f9c087..eb5b111c 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 091a26e5..052e1796 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')));