[Boost-bugs] [Boost C++ Libraries] #5412: XML formatter in test library processes strings with subsequences ']]>' incorrectly

Subject: [Boost-bugs] [Boost C++ Libraries] #5412: XML formatter in test library processes strings with subsequences ']]>' incorrectly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-03 13:45:23


#5412: XML formatter in test library processes strings with subsequences ']]>'
incorrectly
-------------------------------+--------------------------------------------
 Reporter: Hsilgos@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 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:[[BR]]

 BOOST_CHECK_EQUAL(parseCData("Some comment]]>"), "Some comment");[[BR]]

 xml_log_formatter in boost's test library makes next output:[[BR]]

 <Error file="file.cpp" line="123"><![CDATA[parseCData("Some comment]]>")
 == "Some comment" failed [...] ]]></Error>[[BR]]

 But it must be [[BR]]

 <Error file="file.cpp" line="123"><![CDATA[parseCData("Some
 comment]]><![CDATA[>") == "Some comment" failed [...] ]]></Error>[[BR]]

 I.e. library doesn't escape subsequences ']]>'.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5412>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC