Fix unit tests that did not return report_errors()

This commit is contained in:
Glen Fernandes
2018-09-17 07:17:29 -04:00
parent c740a4dbad
commit 9db262acf5
3 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/detail/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp> #include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
#include <boost/fusion/sequence.hpp> #include <boost/fusion/sequence.hpp>
#include <boost/mpl/assert.hpp> #include <boost/mpl/assert.hpp>
@ -185,4 +185,5 @@ int main()
BOOST_TEST(fusion::front(ec).get()=="marshall mathers"); BOOST_TEST(fusion::front(ec).get()=="marshall mathers");
BOOST_TEST(fusion::back(ec).get()==37); BOOST_TEST(fusion::back(ec).get()==37);
} }
return boost::report_errors();
} }

View File

@ -86,4 +86,5 @@ int main()
test_at_key<set<int[3]> >(); test_at_key<set<int[3]> >();
#endif #endif
test_at_key<map<pair<int[3], int[3]> > >(); test_at_key<map<pair<int[3], int[3]> > >();
return boost::report_errors();
} }

View File

@ -7,7 +7,7 @@
#include <string> #include <string>
#include <boost/detail/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <boost/fusion/include/adapt_struct.hpp> #include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/sequence/hash.hpp> #include <boost/fusion/sequence/hash.hpp>
@ -55,4 +55,5 @@ int main()
BOOST_TEST(hash_value(c) != hash_value(d)); BOOST_TEST(hash_value(c) != hash_value(d));
BOOST_TEST(hash_value(c) != hash_value(e)); BOOST_TEST(hash_value(c) != hash_value(e));
BOOST_TEST(hash_value(d) != hash_value(e)); BOOST_TEST(hash_value(d) != hash_value(e));
return boost::report_errors();
} }