From: Richard Levitte Date: Mon, 4 Nov 2019 10:41:01 +0000 (+0100) Subject: test/recipes/02-test_ordinals.t: Take '?' and '?+' into account X-Git-Tag: openssl-3.0.0-alpha1~1012 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=6af1b11848f000c900877f1289a42948d415f21c;hp=b6fc6620cff7e5971757ad1c50edd022fdaffc04;ds=sidebyside test/recipes/02-test_ordinals.t: Take '?' and '?+' into account Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/10348) --- diff --git a/test/recipes/02-test_ordinals.t b/test/recipes/02-test_ordinals.t index 16d3877451..710e7e2324 100644 --- a/test/recipes/02-test_ordinals.t +++ b/test/recipes/02-test_ordinals.t @@ -41,8 +41,11 @@ sub testordinals #Some ordinals can be repeated, e.g. if one is VMS and another is !VMS $newqual = $tokens[4]; $newqual =~ s/!//g; - if ($cnt > $tokens[1] - || ($cnt == $tokens[1] && ($qualifier ne $newqual + my $number = $tokens[1]; + $number = $cnt + 1 if $number eq '?'; + $number = $cnt if $number eq '?+'; + if ($cnt > $number + || ($cnt == $number && ($qualifier ne $newqual || $qualifier eq ""))) { print STDERR "Invalid ordinal detected: ".$tokens[1]."\n"; $ret = 0;