Fix test_ordinals
authorMatt Caswell <matt@openssl.org>
Wed, 13 Jan 2016 20:51:41 +0000 (20:51 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 13 Jan 2016 20:52:12 +0000 (20:52 +0000)
This used to work but somewhere along the line it broke and was failing to
detect duplicate ordinals - which was the whole point of the test!

Reviewed-by: Rich Salz <rsalz@openssl.org>
test/recipes/01-test_ordinals.t

index 53fb21d..6c5efff 100755 (executable)
@@ -89,7 +89,7 @@ sub testordinals
         $newqual =~ s/!//g;
         if ($cnt > $tokens[1]
                 || ($cnt == $tokens[1] && ($qualifier ne $newqual
-                                           || $qualifier eq "FUNCTION"))) {
+                                           || $qualifier eq ""))) {
             print STDERR "Invalid ordinal detected: ".$tokens[1]."\n";
             $ret = 0;
             last;