From fddb87425a25aeb6e937496c4952c9bf3d8bb673 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 27 Jul 2015 16:04:40 +0200 Subject: Fix spurious conform test failures --- ChangeLog | 5 +++++ conform/conformtest.pl | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e202c4bf9..2ebbeb6f87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-07-27 Andreas Schwab + + * conform/conformtest.pl (checknamespace): Filter out string + literals while tokenizing. + 2015-07-26 Chung-Lin Tang * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define. diff --git a/conform/conformtest.pl b/conform/conformtest.pl index a8a27f5d2a..cc0944a889 100644 --- a/conform/conformtest.pl +++ b/conform/conformtest.pl @@ -275,9 +275,8 @@ sub checknamespace { } else { # We have to tokenize the line. my($str) = $_; - my($index) = 0; - my($len) = length ($str); + $str =~ s/"[^"]*"//g; foreach $token (split(/[^a-zA-Z0-9_]/, $str)) { if ($token ne "") { newtoken ($token, @allow); -- cgit v1.2.1