diff options
author | Justus Winter <[email protected]> | 2016-09-27 10:28:38 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-09-27 10:31:18 +0000 |
commit | a423603f80d9eb653ce9c171662db2175d7456f5 (patch) | |
tree | ac0e4f7f1c79e2e125880be926a161e0a6e5b0c5 | |
parent | python: Get rid of the last C++-style comments. (diff) | |
download | gpgme-a423603f80d9eb653ce9c171662db2175d7456f5.tar.gz gpgme-a423603f80d9eb653ce9c171662db2175d7456f5.zip |
tests: Fix check for gpg versions not reporting the critical flag.
* lang/python/tests/t-sig-notation.py: Also blacklist 2.0.x.
* tests/gpg/t-sig-notation.c: Likewise.
Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-x | lang/python/tests/t-sig-notation.py | 1 | ||||
-rw-r--r-- | tests/gpg/t-sig-notation.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py index 777bc0b5..68f9c087 100755 --- a/lang/python/tests/t-sig-notation.py +++ b/lang/python/tests/t-sig-notation.py @@ -36,6 +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 == "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 aee7551f..091a26e5 100644 --- a/tests/gpg/t-sig-notation.c +++ b/tests/gpg/t-sig-notation.c @@ -151,6 +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.1.1", engine_info->version, 5) == 0 && (engine_info->version[5] == 0 || engine_info->version[5] < '3'))); |