#5412 closed Bugs (fixed)
XML formatter in test library processes strings with subsequences ']]>' incorrectly
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | Boost 1.59.0 | Component: | test |
Version: | Boost 1.47.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I test my xml paser and use boost's test library for this. Also i want to have output during testing in xml format.
This is my test code:
BOOST_CHECK_EQUAL(parseCData("Some comment]]>"), "Some comment");
xml_log_formatter in boost's test library makes next output:
<Error file="file.cpp" line="123"><![CDATA[parseCData("Some comment]]>") == "Some comment" failed [...] ]]></Error>
But it must be
<Error file="file.cpp" line="123"><![CDATA[parseCData("Some comment]]><![CDATA[>") == "Some comment" failed [...] ]]></Error>
I.e. library doesn't escape subsequences ']]>'.
Change History (2)
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|
Note:
See TracTickets
for help on using tickets.
(In [75003]) escape CDATA section end within CDATA section Fixes #5412