From 24091f8bd8dc5d12afc7ce19f4f10649d988adc0 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 29 Apr 2009 21:43:41 +0000 Subject: [PATCH] Don't test prime_list::length on Visual C++. Checking the array size doesn't seem to work on it. [SVN r52669] --- test/unordered/detail_tests.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/unordered/detail_tests.cpp b/test/unordered/detail_tests.cpp index daa89895..757f6aee 100644 --- a/test/unordered/detail_tests.cpp +++ b/test/unordered/detail_tests.cpp @@ -16,12 +16,17 @@ int main() { // Test that the prime list has the right length. // // It would have been better to automatically set the length in the header - // but that doesn't work on some older compilers. + // but that doesn't work on some compilers. It's okay that this isn't tested + // on all compilers, as it really only needs to be checked on one. + +#if !defined(BOOST_MSVC) BOOST_TEST_EQ( boost::end(boost::unordered_detail::prime_list::value) - boost::begin(boost::unordered_detail::prime_list::value), boost::unordered_detail::prime_list::length); + +#endif return boost::report_errors(); } \ No newline at end of file