projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/recipes/02-test_ordinals.t: Take '?' and '?+' into account
[openssl.git]
/
test
/
recipes
/
02-test_ordinals.t
diff --git
a/test/recipes/02-test_ordinals.t
b/test/recipes/02-test_ordinals.t
index 16d3877451193ded8d5eeaabadc339596a06d5b3..710e7e23240f14978eaf150dc19b49bc7f76ecff 100644
(file)
--- 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;
#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;
|| $qualifier eq ""))) {
print STDERR "Invalid ordinal detected: ".$tokens[1]."\n";
$ret = 0;