projects
/
gpgme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0263ad
)
tests: Fix version comparison.
author
Justus Winter
<justus@g10code.com>
Mon, 12 Sep 2016 13:42:07 +0000
(15:42 +0200)
committer
Justus Winter
<justus@g10code.com>
Mon, 12 Sep 2016 13:42:07 +0000
(15:42 +0200)
* tests/gpg/t-sig-notation.c: Fix version comparison.
Fixes-commit:
a0263ad2
Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpg/t-sig-notation.c
patch
|
blob
|
history
diff --git
a/tests/gpg/t-sig-notation.c
b/tests/gpg/t-sig-notation.c
index
798ad24
..
98d5095
100644
(file)
--- a/
tests/gpg/t-sig-notation.c
+++ b/
tests/gpg/t-sig-notation.c
@@
-147,8
+147,8
@@
main (int argc, char *argv[])
/* GnuPG prior to 2.1.13 did not report the critical flag
correctly. */
have_correct_sig_data =
- ! (strncmp ("1.", engine_info->version, 2)
- || (strncmp ("2.1.1", engine_info->version, 5)
+ ! (strncmp ("1.", engine_info->version, 2)
== 0
+ || (strncmp ("2.1.1", engine_info->version, 5)
== 0
&& (engine_info->version[5] == 0
|| engine_info->version[5] < '3')));