Correct detection of group end in map file when testing symbol presence
authorRichard Levitte <levitte@openssl.org>
Mon, 5 Sep 2016 22:48:13 +0000 (00:48 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 5 Sep 2016 22:48:13 +0000 (00:48 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
test/recipes/01-test_symbol_presence.t

index dbd4b1008d254edaf6ef3d749dc5e9005f398319..7f2a2d75b8c5f4c604283c69ed6122c96fede82a 100644 (file)
@@ -69,6 +69,7 @@ foreach my $libname (@libnames) {
             map { s|;||; s|\s+||g; $_ }
             grep { $in_global = 1 if m|global:|;
                    $in_global = 0 if m|local:|;
             map { s|;||; s|\s+||g; $_ }
             grep { $in_global = 1 if m|global:|;
                    $in_global = 0 if m|local:|;
+                   $in_global = 0 if m|\}|;
                    $in_global && m|;|; } @def_lines;
 
         note "Number of lines in \@nm_lines after massaging: ", scalar @nm_lines;
                    $in_global && m|;|; } @def_lines;
 
         note "Number of lines in \@nm_lines after massaging: ", scalar @nm_lines;