Subject: [Boost-bugs] [Boost C++ Libraries] #8330: Log output stream redirection not redirecting the closing tag in XML format
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-24 14:35:37
#8330: Log output stream redirection not redirecting the closing tag in XML format
-----------------------------------------------------------+----------------
Reporter: Marco Azimonti <marco.azimonti.dev@â¦> | Owner: rogeeff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.53.0 | Severity: Cosmetic
Keywords: |
-----------------------------------------------------------+----------------
I followed the example from the documentation "Example 30. Test log output
redirection".
If I use the format XML as output, the last tag is outputted in the
console and not in the file.
in the console I have
{{{
./out/testsSuite/bin/myTestSuite --log_format=XML
</TestLog>
*** No errors detected
}}}
and the tag is missing from the file.
I tried to remove //set_stream( std::cout );// from the destructor, and I
have a crash with segmentation fault.
I have a workaround for the moment
{{{
~TestReport(){
// Bug in boost 1.53.0 ?
test_log << "</TestLog>";
unit_test_log.set_stream( std::cout );
}
}}}
but I wanted to report the issue to the maintainer.
Regards,
Marco
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8330> 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:12 UTC