Opened 11 years ago
Closed 7 years ago
#5546 closed Bugs (fixed)
BUFT generates invalid XML
Reported by: | 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 "<" and ">". 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)
Change History (4)
by , 11 years ago
Attachment: | osal_xml_test.xml added |
---|
comment:1 by , 10 years ago
I need more specific pointers at what is wrong. I can't locate it in this huge file.
comment:2 by , 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 '>'. 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 < struct boost::exception_detail::error_info_injector < class Test::derived_logic_error > >
Regards, Seweryn.
comment:3 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Example output with templates