tests: Fix blunder.

--
Fixes-commit: a423603f
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-09-27 12:49:24 +02:00
parent 145392f07f
commit a6e9eefb23
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ expected_notations = {
with core.Context() as c: with core.Context() as c:
version = c.engine_info.version version = c.engine_info.version
have_correct_sig_data = not (version.startswith("1.") have_correct_sig_data = not (version.startswith("1.")
version.startswith("2.0.") or version.startswith("2.0.")
or version == "2.1.1" or version == "2.1.1"
or (version.startswith("2.1.1") or (version.startswith("2.1.1")
and version[5] < '3')) and version[5] < '3'))

View File

@ -151,7 +151,7 @@ main (int argc, char *argv[])
correctly. */ correctly. */
have_correct_sig_data = have_correct_sig_data =
! (strncmp ("1.", engine_info->version, 2) == 0 ! (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 || (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')));