Boost C++ Libraries: Ticket #2292: symbols_add_null* tests fail in release builds https://svn.boost.org/trac10/ticket/2292 en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2292 Trac 1.4.3 Dave Abrahams Fri, 05 Sep 2008 23:21:44 GMT <link>https://svn.boost.org/trac10/ticket/2292#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2292#comment:1</guid> <description> <p> The following patch fixes the problem. I know things have been shuffled around for Boost 1.36, but maybe you can translate this into an appropriate fix there too. </p> <pre class="wiki">Index: libs/spirit/test/symbols_add_null.cpp =================================================================== --- libs/spirit/test/symbols_add_null.cpp (revision 3118) +++ libs/spirit/test/symbols_add_null.cpp (working copy) @@ -7,6 +7,12 @@ http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ +#ifdef NDEBUG +// This test will not work when NDEBUG is #defined because it prevents the +// assertion in symbols_.add from throwing as this test expects it to. +# undef NDEBUG +#endif + #define BOOST_SPIRIT_ASSERT_EXCEPTION ::spirit_exception struct spirit_exception </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Hartmut Kaiser</dc:creator> <pubDate>Mon, 02 Aug 2010 15:51:21 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2292#comment:2 https://svn.boost.org/trac10/ticket/2292#comment:2 <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">duplicate</span> </li> </ul> <p> Duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3159" title="#3159: Bugs: Classic Spirit test needs to undefine NDEBUG to validate behaviour (closed: fixed)">#3159</a> </p> Ticket