Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2292: symbols_add_null* tests fail in release builds
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-05 23:21:44
#2292: symbols_add_null* tests fail in release builds
---------------------------+------------------------------------------------
Reporter: dave | Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: spirit
Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------
Comment(by dave):
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.
{{{
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
}}}
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2292#comment:1> 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:49:58 UTC