Some more checks.

The intel-linux failures I'm getting now are odd. This find test is
failing for iterator, but not const_iterator. So maybe it's a problem
with the iterator object. The failures I was getting before have
disappeared, so I'm not sure about that.
This commit is contained in:
Daniel James
2016-07-29 12:19:50 +01:00
parent bc601e34d2
commit 0769ecd70d

View File

@ -38,10 +38,10 @@ void find_tests1(X*, test::random_generator generator)
{ {
BOOST_DEDUCED_TYPENAME X::key_type key = test::get_key<X>(*it1); BOOST_DEDUCED_TYPENAME X::key_type key = test::get_key<X>(*it1);
iterator pos = x.find(key); iterator pos = x.find(key);
BOOST_DEDUCED_TYPENAME X::const_iterator BOOST_DEDUCED_TYPENAME X::const_iterator const_pos = x_const.find(key);
const_pos = x_const.find(key); BOOST_TEST(pos != x.end());
BOOST_TEST(pos != x.end() && BOOST_TEST(pos != x.end() && x.key_eq()(key, test::get_key<X>(*pos)));
x.key_eq()(key, test::get_key<X>(*pos))); BOOST_TEST(const_pos != x_const.end());
BOOST_TEST(const_pos != x_const.end() && BOOST_TEST(const_pos != x_const.end() &&
x_const.key_eq()(key, test::get_key<X>(*const_pos))); x_const.key_eq()(key, test::get_key<X>(*const_pos)));