Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-08-31 05:16:55


Author: johnmaddock
Date: 2007-08-31 05:16:54 EDT (Fri, 31 Aug 2007)
New Revision: 39083
URL: http://svn.boost.org/trac/boost/changeset/39083

Log:
Another attempt to fix Mac OS failures: previous pp-logic didn't work for some reason.
Text files modified:
   sandbox/math_toolkit/libs/math/test/test_ibeta_inv.cpp | 47 ++++++++++++++++++++-------------------
   sandbox/math_toolkit/libs/math/test/test_igamma.cpp | 2
   2 files changed, 25 insertions(+), 24 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_ibeta_inv.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_ibeta_inv.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_ibeta_inv.cpp 2007-08-31 05:16:54 EDT (Fri, 31 Aug 2007)
@@ -77,29 +77,30 @@
    // Extended exponent range of long double
    // causes more extreme test cases to be executed:
    //
-#if LDBL_MANT_DIG == 64
- add_expected_result(
- ".*", // compiler
- ".*", // stdlib
- ".*", // platform
- "double", // test type(s)
- ".*", // test data group
- ".*", 20, 10); // test function
- add_expected_result(
- ".*", // compiler
- ".*", // stdlib
- ".*", // platform
- "long double", // test type(s)
- ".*", // test data group
- ".*", 200000, 100000); // test function
- add_expected_result(
- ".*", // compiler
- ".*", // stdlib
- ".*", // platform
- "real_concept", // test type(s)
- ".*", // test data group
- ".*", 5000000L, 500000); // test function
-#endif
+ if(std::numeric_limits<long double>::digits == 64)
+ {
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
+ "double", // test type(s)
+ ".*", // test data group
+ ".*", 20, 10); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
+ "long double", // test type(s)
+ ".*", // test data group
+ ".*", 200000, 100000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
+ "real_concept", // test type(s)
+ ".*", // test data group
+ ".*", 5000000L, 500000); // test function
+ }
    //
    // MinGW,
    // Extended exponent range of long double

Modified: sandbox/math_toolkit/libs/math/test/test_igamma.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_igamma.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_igamma.cpp 2007-08-31 05:16:54 EDT (Fri, 31 Aug 2007)
@@ -399,7 +399,7 @@
    // basic sanity checks, tolerance is 10 epsilon expressed as a percentage:
    //
    T tolerance = boost::math::tools::epsilon<T>() * 1000;
-#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && (LDBL_MANT_DIG == 106)
+#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
    tolerance *= 10;
 #endif
    BOOST_CHECK_CLOSE(::boost::math::tgamma(static_cast<T>(5), static_cast<T>(1)), static_cast<T>(23.912163676143750903709045060494956383977723517065L), tolerance);


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