|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56795 - in branches/release/libs/spirit/test: karma qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-13 14:30:23
Author: hkaiser
Date: 2009-10-13 14:30:22 EDT (Tue, 13 Oct 2009)
New Revision: 56795
URL: http://svn.boost.org/trac/boost/changeset/56795
Log:
Spirit: disabling certain tests for broken platforms, merging from trunk
Properties modified:
branches/release/libs/spirit/test/qi/optional.cpp (props changed)
Text files modified:
branches/release/libs/spirit/test/karma/real_numerics.cpp | 4 ++++
branches/release/libs/spirit/test/qi/real.cpp | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
Modified: branches/release/libs/spirit/test/karma/real_numerics.cpp
==============================================================================
--- branches/release/libs/spirit/test/karma/real_numerics.cpp (original)
+++ branches/release/libs/spirit/test/karma/real_numerics.cpp 2009-10-13 14:30:22 EDT (Tue, 13 Oct 2009)
@@ -508,6 +508,9 @@
}
#endif
+// this appears to be broken on Apple Tiger x86 with gcc4.0.1
+#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ != 40001) || \
+ !defined(__APPLE__)
{
///////////////////////////////////////////////////////////////////////
typedef karma::real_generator<double, bordercase_policy<double> >
@@ -526,6 +529,7 @@
BOOST_TEST(test("-2.2250738585072014e-308",
bordercase(-2.2250738585072014e-308))); // -DBL_MIN
}
+#endif
{
boost::optional<double> v;
Modified: branches/release/libs/spirit/test/qi/real.cpp
==============================================================================
--- branches/release/libs/spirit/test/qi/real.cpp (original)
+++ branches/release/libs/spirit/test/qi/real.cpp 2009-10-13 14:30:22 EDT (Tue, 13 Oct 2009)
@@ -255,6 +255,9 @@
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__)
BOOST_TEST(test_attr("-5.7222349715140557e+307", double_, d));
BOOST_TEST(d == -5.7222349715140557e+307); // exact!
@@ -266,6 +269,7 @@
BOOST_TEST(test_attr("2.0332938517515416e307", double_, d));
BOOST_TEST(d == 2.0332938517515416e307); // exact!
+#endif
using boost::math::fpclassify;
using boost::spirit::detail::signbit; // Boost version is broken
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