Opened 11 years ago

Closed 7 years ago

#5546 closed Bugs (fixed)

BUFT generates invalid XML

Reported by: habdank@… Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

The option --log_format=XML in BUTF generates corrupted XML. Especially templates are using "<" or ">" instead of "&lt;" and "&gt;". That error makes that none XML parser can read BUTF output. Also XML validation using e.g. xmllint (on Linux) is failing.

Example is attached.

Attachments (1)

osal_xml_test.xml (103.8 KB ) - added by habdank@… 11 years ago.
Example output with templates

Download all attachments as: .zip

Change History (4)

by habdank@…, 11 years ago

Attachment: osal_xml_test.xml added

Example output with templates

comment:1 by Gennadiy Rozental, 10 years ago

I need more specific pointers at what is wrong. I can't locate it in this huge file.

comment:2 by habdank@…, 10 years ago

Hi,

The problem is with templates. BUTF when states something about template like: Foo<Bar> uses directly '<' and '>' characters, but XML accepts only '%lt;' and '&gt;'. So names of templates that are printed in BUTF logs especially when there are some templates names created via BUTF macros looping over some type lists, shall use valid XML.

For example sttring like:

boost::exception_detail::clone_impl<struct boost::exception_detail::error_info_injector<class Test::derived_logic_error> >

shall be converted to:

boost::exception_detail::clone_impl &lt; struct boost::exception_detail::error_info_injector &lt; class Test::derived_logic_error &gt; &gt;

Regards, Seweryn.

comment:3 by Gennadiy Rozental, 7 years ago

Milestone: To Be DeterminedBoost 1.59.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.