|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52669 - trunk/libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-04-29 17:43:41
Author: danieljames
Date: 2009-04-29 17:43:41 EDT (Wed, 29 Apr 2009)
New Revision: 52669
URL: http://svn.boost.org/trac/boost/changeset/52669
Log:
Don't test prime_list::length on Visual C++.
Checking the array size doesn't seem to work on it.
Text files modified:
trunk/libs/unordered/test/unordered/detail_tests.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/libs/unordered/test/unordered/detail_tests.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/detail_tests.cpp (original)
+++ trunk/libs/unordered/test/unordered/detail_tests.cpp 2009-04-29 17:43:41 EDT (Wed, 29 Apr 2009)
@@ -16,12 +16,17 @@
// 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
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