Opened 10 years ago
Closed 7 years ago
#8330 closed Bugs (fixed)
Log output stream redirection not redirecting the closing tag in XML format
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | Boost 1.59.0 | Component: | test |
Version: | Boost 1.53.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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
Change History (1)
comment:1 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.