This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

conformtest: Handle "symbol" lines for allow-header


When conformtest.pl processes the data for a header listed with
allow-header, it ignores "symbol" lines.  I propose this patch to fix
this.  This fixes the one failure reported for "POSIX" (i.e. POSIX.1,
1995/1996 edition) testing; the tests were failing to allow for the
CLK_TCK symbol from time.h being visible through pthread.h.  Tested
x86_64.

2012-04-28  Joseph Myers  <joseph@codesourcery.com>

	* conform/conformtest.pl: Handle "symbol" lines for allow-header.

diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 8b95186..a14aa09 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -1075,6 +1075,8 @@ while ($#headers >= 0) {
 	push @allow, $4;
       } elsif (/^macro *([^	]*)/) {
 	push @allow, $1;
+      } elsif (/^symbol *([a-zA-Z0-9_]*) *([A-Za-z0-9_-]*)?/) {
+	push @allow, $1;
       } elsif (/^allow-header *(.*)/) {
 	if ($seenheader{$1} != 1) {
 	  push @allowheader, $1;

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]