From 0769ecd70dcc82d61d0176fb392607ea9bb580bd Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 29 Jul 2016 12:19:50 +0100 Subject: [PATCH] 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. --- test/unordered/find_tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unordered/find_tests.cpp b/test/unordered/find_tests.cpp index a310d40c..5c864788 100644 --- a/test/unordered/find_tests.cpp +++ b/test/unordered/find_tests.cpp @@ -38,10 +38,10 @@ void find_tests1(X*, test::random_generator generator) { BOOST_DEDUCED_TYPENAME X::key_type key = test::get_key(*it1); iterator pos = x.find(key); - BOOST_DEDUCED_TYPENAME X::const_iterator - const_pos = x_const.find(key); - BOOST_TEST(pos != x.end() && - x.key_eq()(key, test::get_key(*pos))); + BOOST_DEDUCED_TYPENAME X::const_iterator const_pos = x_const.find(key); + BOOST_TEST(pos != x.end()); + BOOST_TEST(pos != x.end() && x.key_eq()(key, test::get_key(*pos))); + BOOST_TEST(const_pos != x_const.end()); BOOST_TEST(const_pos != x_const.end() && x_const.key_eq()(key, test::get_key(*const_pos)));