conformtest: Handle conditional XFAILs with allow-header [committed]

Submitted by Joseph S. Myers on March 18, 2017, 12:16 a.m.

Details

Message ID alpine.DEB.2.20.1703180016230.9823@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph S. Myers March 18, 2017, 12:16 a.m.
This patch fixes the conformtest handling of headers listed in
allow-header to process xfail[cond]- in the expectations for those
headers.

Tested with build-many-glibcs.py.  Committed.

2017-03-18  Joseph Myers  <joseph@codesourcery.com>

	* conform/conformtest.pl: Handle xfail[cond]- in header mentioned
	with allow-header.

Patch hide | download patch | download mbox

diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 7594f46..cb500f0 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -810,7 +810,7 @@  while ($#headers >= 0) {
       next acontrol if (/^#/);
       next acontrol if (/^[	]*$/);
 
-      s/^xfail-//;
+      s/^xfail(\[([^\]]*)\])?-//;
       s/^optional-//;
       if (/^element *({([^}]*)}|([^ ]*)) *({([^}]*)}|([^ ]*)) *([A-Za-z0-9_]*) *(.*)/) {
 	push @allow, $7;