aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-12 13:42:07 +0000
committerJustus Winter <[email protected]>2016-09-12 13:42:07 +0000
commitdfd99ab50c3bc1d6745b6f682791e4885e8d8a9a (patch)
treef04217cab7c70c9df6634190b0b87f4119ef4f31
parenttests: Make signature notation test compatible with older GnuPGs. (diff)
downloadgpgme-dfd99ab50c3bc1d6745b6f682791e4885e8d8a9a.tar.gz
gpgme-dfd99ab50c3bc1d6745b6f682791e4885e8d8a9a.zip
tests: Fix version comparison.
* tests/gpg/t-sig-notation.c: Fix version comparison. Fixes-commit: a0263ad2 Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--tests/gpg/t-sig-notation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gpg/t-sig-notation.c b/tests/gpg/t-sig-notation.c
index 798ad24f..98d50952 100644
--- 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')));