|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64543 - trunk/libs/spirit/classic/test
From: hartmut.kaiser_at_[hidden]
Date: 2010-08-02 11:48:22
Author: hkaiser
Date: 2010-08-02 11:48:21 EDT (Mon, 02 Aug 2010)
New Revision: 64543
URL: http://svn.boost.org/trac/boost/changeset/64543
Log:
Spirit: fixed #3159: Classic Spirit test needs to undefine NDEBUG to validate behaviour
Text files modified:
trunk/libs/spirit/classic/test/symbols_add_null.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/libs/spirit/classic/test/symbols_add_null.cpp
==============================================================================
--- trunk/libs/spirit/classic/test/symbols_add_null.cpp (original)
+++ trunk/libs/spirit/classic/test/symbols_add_null.cpp 2010-08-02 11:48:21 EDT (Mon, 02 Aug 2010)
@@ -7,6 +7,12 @@
http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
+// This test requires NDEBUG to be undefined, because it depends on
+// BOOST_SPIRIT_ASSERT throwing an exception.
+#ifdef NDEBUG
+# undef NDEBUG
+#endif
+
#include <stdexcept>
#define BOOST_SPIRIT_ASSERT_EXCEPTION ::spirit_exception
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk