From d63450595504a8b6cfd39ff46fbb474be6aa44da Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 25 Feb 2007 12:15:52 +0000 Subject: [PATCH] Intel 9.1 with the gcc stdlib seems to segfault on call to std::asin and std::acos. So for them I'm disabling that test - it isn't vital. [SVN r37062] --- hash/test/hash_float_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hash/test/hash_float_test.cpp b/hash/test/hash_float_test.cpp index 193920a..0bfacbb 100644 --- a/hash/test/hash_float_test.cpp +++ b/hash/test/hash_float_test.cpp @@ -125,12 +125,17 @@ void float_tests(char const* name, T* = 0) BOOST_TEST(x1(half_max) != x1(three_quarter_max)); BOOST_TEST(x1(three_quarter_max) == x1(three_quarter_max)); +// Intel with gcc stdlib sometimes segfaults on calls to asin and acos. +#if !((defined(__INTEL_COMPILER) || defined(__ICL) || \ + defined(__ICC) || defined(__ECC)) && \ + (defined(__GLIBCPP__) || defined(__GLIBCXX__))) T v1 = asin((T) 1); T v2 = acos((T) 0); if(v1 == v2) BOOST_TEST(x1(v1) == x1(v2)); BOOST_TEST(x1(v1) == HASH_NAMESPACE::hash_value(v1)); BOOST_TEST(x1(v2) == HASH_NAMESPACE::hash_value(v2)); +#endif BOOST_TEST(x1(std::numeric_limits::epsilon()) == HASH_NAMESPACE::hash_value(std::numeric_limits::epsilon()));