Boost C++ Libraries: Ticket #3121: --log_format=XML invalid XML file https://svn.boost.org/trac10/ticket/3121 <p> After several tries I have figured out how to create an XML output from an unit test. I have redirected (_unit_test --log_level=test_suite --log_format=XML &gt;&gt; log.xml) the output to a file, so I can automatically parse the file for errors. </p> <p> But I was not able to open the created XML file. After a few analizes I have figured out why the XML file was corrupt. The "dumping objects" output is just added without XML Tags. </p> <p> Either the "dumping objects" output should be parametrizeable (on/off) or written in XML format too. </p> <p> The other thing is that the test summary is not inside the XML file: <strong>* 1 failure detected in test suite "Master Test Suite". This should also be written inside XML Tags, to have the possibility to have an overview either the test succeeded or not. </strong></p> <p> The last point is that I have always the "Master Test Suite" appears somewhere and I don´t know why. Also when there are errors inside the test this is shown with Master suite as written above. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3121 Trac 1.4.3 Gennadiy Rozental Sat, 06 Jun 2009 10:14:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3121#comment:1 https://svn.boost.org/trac10/ticket/3121#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <ol><li>Memory leak detection can be disabled with --detect_memory_leak=0 </li><li>Test report can also be written in XML. you can either use separate flag --report_format, or use --output_format to govern the format of both outputs. Note that the report goes into stderr, while log goes into stdout. </li></ol><p> Please let me know if you still having any issues. </p> Ticket ronald.putz@… Wed, 10 Jun 2009 08:24:26 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/3121#comment:2 https://svn.boost.org/trac10/ticket/3121#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> <p> --output_format=XML seems to be the thing I want to have </p> <p> The other side is that --detect_memory_leak=0 doesn´t have an effect on my test. I also tried to set the environment variable BOOST_TEST_DETECT_MEMORY_LEAK = 0, but this also has no effect. I have always a summary at the end of my test which can´t be disabled! </p> <p> &lt;<a class="missing wiki">/TestResult</a>&gt; Detected memory leaks! Dumping objects -&gt; <a class="missing report" title="report does not exist">{5803}</a> normal block at 0x01BBE138, 30 bytes long. </p> <p> Is there a way to write the output to a file with a parameter or environment variable? </p> Ticket Gennadiy Rozental Sun, 28 Jun 2009 18:52:44 GMT <link>https://svn.boost.org/trac10/ticket/3121#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3121#comment:3</guid> <description> <p> detect_memory_leaks works for me fine there is no parameter to redirect leaks output into a file at the moment --output_format=XML you have, anything else? </p> </description> <category>Ticket</category> </item> <item> <author>astukalov@…</author> <pubDate>Tue, 04 Aug 2009 11:21:43 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/3121#comment:4 https://svn.boost.org/trac10/ticket/3121#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">astukalov@…</span> added </li> </ul> <p> <code>--detect_memory_leak=0</code> have no effect for me too (MSVC2008, debug) </p> <p> +1 for being able to specify log/report output file, otherwise there is no guarantee, that the resulting file would be XML. </p> Ticket Gennadiy Rozental Mon, 23 Nov 2009 03:08:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3121#comment:5 https://svn.boost.org/trac10/ticket/3121#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> --detect_memory_leak=0 or --detect_memory_leaks=0 should do the trick. Former works in recent versions of Boost. Later worked always. </p> <p> As for the log and report sink - i'll consider this. </p> Ticket