Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59361 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2010-01-29 22:44:31


Author: djowel
Date: 2010-01-29 22:44:30 EST (Fri, 29 Jan 2010)
New Revision: 59361
URL: http://svn.boost.org/trac/boost/changeset/59361

Log:
fix regression failure. macro BOOST_SPIRIT_TEST_REAL_PRECISION enables a particular test for precision. This is disabled by default.
Text files modified:
   trunk/libs/spirit/test/qi/real.cpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/test/qi/real.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/real.cpp (original)
+++ trunk/libs/spirit/test/qi/real.cpp 2010-01-29 22:44:30 EST (Fri, 29 Jan 2010)
@@ -255,9 +255,7 @@
         BOOST_TEST(!test("-1.2e", double_));
         BOOST_TEST(!test_attr("-1.2e", double_, d));
 
-// this appears to be broken on Apple Tiger x86 with gcc4.0.1
-#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ != 40001) || \
- !defined(__APPLE__)
+#if defined(BOOST_SPIRIT_TEST_REAL_PRECISION)
         BOOST_TEST(test_attr("-5.7222349715140557e+307", double_, d));
         BOOST_TEST(d == -5.7222349715140557e+307); // exact!
 


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