tests: Fix version comparison.

* tests/gpg/t-sig-notation.c: Fix version comparison.

Fixes-commit: a0263ad2
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-09-12 15:42:07 +02:00
parent a0263ad282
commit dfd99ab50c

View File

@ -147,8 +147,8 @@ main (int argc, char *argv[])
/* GnuPG prior to 2.1.13 did not report the critical flag /* GnuPG prior to 2.1.13 did not report the critical flag
correctly. */ correctly. */
have_correct_sig_data = have_correct_sig_data =
! (strncmp ("1.", engine_info->version, 2) ! (strncmp ("1.", engine_info->version, 2) == 0
|| (strncmp ("2.1.1", engine_info->version, 5) || (strncmp ("2.1.1", engine_info->version, 5) == 0
&& (engine_info->version[5] == 0 && (engine_info->version[5] == 0
|| engine_info->version[5] < '3'))); || engine_info->version[5] < '3')));