Boost C++ Libraries: Ticket #11962: BOOST_TEST_MESSAGE in fixture constructor - invalid XML https://svn.boost.org/trac10/ticket/11962 <p> I came across an issue with our global fixture using BOOST_TEST_MESSAGE. The resulting XML file in <strong>--output_format=XML --log_level=all</strong> mode has the message, but not wrapped in the </p> <pre class="wiki">&lt;TestLog&gt; ... &lt;/TestLog&gt; </pre><p> scope. In turn xsltproc would break on this, trying to convert to JUnit. I think it would be better for the BOOST_TEST_MESSAGE to either be silently dropped, or perhaps buffered, or <a class="missing wiki">TestLog</a> XML tag should be forced. </p> <p> Using boost 1.59.0 here. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11962 Trac 1.4.3 Raffi Enficiaud Mon, 29 Feb 2016 07:48:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11962#comment:1 https://svn.boost.org/trac10/ticket/11962#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">fixed</span> </li> </ul> <p> Merged to master rev 6a3a616 </p> Ticket Raffi Enficiaud Mon, 29 Feb 2016 07:50:22 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/11962#comment:2 https://svn.boost.org/trac10/ticket/11962#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">fixed</span> </li> </ul> <p> Sorry wrong ticket :) </p> Ticket nigels.com@… Mon, 29 Feb 2016 07:52:08 GMT <link>https://svn.boost.org/trac10/ticket/11962#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11962#comment:3</guid> <description> <p> Dang! :-) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 31 Mar 2016 23:17:16 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/11962#comment:4 https://svn.boost.org/trac10/ticket/11962#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.61.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Raffi Enficiaud Fri, 19 Aug 2016 08:50:28 GMT <link>https://svn.boost.org/trac10/ticket/11962#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11962#comment:5</guid> <description> <p> The problem here is that global fixture are convenient for changing the logger at runtime, so they must be executed before the logger starts. </p> <p> I am thinking of a fix. Do you have a snippet? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Sun, 11 Dec 2016 19:04:16 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/11962#comment:6 https://svn.boost.org/trac10/ticket/11962#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">new</span> </li> </ul> <p> Digging deeper: this is related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5563" title="#5563: Bugs: using a test macro in a global fixture crashes Boost.Test (closed: fixed)">#5563</a> </p> Ticket Raffi Enficiaud Sun, 11 Dec 2016 19:04:21 GMT status changed https://svn.boost.org/trac10/ticket/11962#comment:7 https://svn.boost.org/trac10/ticket/11962#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Federico Prades <federico.prades@…> Wed, 21 Dec 2016 09:40:27 GMT cc set https://svn.boost.org/trac10/ticket/11962#comment:8 https://svn.boost.org/trac10/ticket/11962#comment:8 <ul> <li><strong>cc</strong> <span class="trac-author">federico.prades@…</span> added </li> </ul> Ticket Raffi Enficiaud Thu, 22 Jun 2017 22:52:12 GMT milestone changed https://svn.boost.org/trac10/ticket/11962#comment:9 https://svn.boost.org/trac10/ticket/11962#comment:9 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> Ticket Raffi Enficiaud Fri, 23 Jun 2017 15:39:06 GMT <link>https://svn.boost.org/trac10/ticket/11962#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11962#comment:10</guid> <description> <p> Hi, </p> <p> I just pushed a fix on the develop branch (rev <code>ea9d9b9a8ea3f9aceb71cce41d48c820f05b2fdc</code>) that addresses the issue by adding a dedicated macro for global fixtures <code>BOOST_TEST_GLOBAL_FIXTURE</code> and decouples it from the global initialization (that now goes to <code>BOOST_TEST_GLOBAL_INITIALIZATION</code>). </p> <p> The global init cannot receive any logs, while the global fixture can. It should solve your issue, and it would be nice if you give a try. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Sun, 16 Jul 2017 08:42:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11962#comment:11 https://svn.boost.org/trac10/ticket/11962#comment:11 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> In master, rev <code>3d13638c412ac357f178e99a99bf44dfd756c057</code> </p> Ticket