]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/foreach/test/stl_byref_r.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / foreach / test / stl_byref_r.cpp
index 6febdfbf7552692eb55e57699f44556dac5a0c38..28dcbe3646ca31f6b8c8c87b01df6f75419ed270 100644 (file)
@@ -9,7 +9,7 @@
 */
 
 #include <list>
-#include <boost/test/minimal.hpp>
+#include <boost/core/lightweight_test.hpp>
 #include <boost/foreach.hpp>
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -44,19 +44,19 @@ std::list<int> const &my_const_list = my_list;
 ///////////////////////////////////////////////////////////////////////////////
 // test_main
 //   
-int test_main( int, char*[] )
+int main()
 {
     // non-const containers by reference
-    BOOST_CHECK(sequence_equal_byref_n_r(my_list, "\5\4\3\2\1"));
+    BOOST_TEST(sequence_equal_byref_n_r(my_list, "\5\4\3\2\1"));
 
     // const containers by reference
-    BOOST_CHECK(sequence_equal_byref_c_r(my_const_list, "\5\4\3\2\1"));
+    BOOST_TEST(sequence_equal_byref_c_r(my_const_list, "\5\4\3\2\1"));
 
     // mutate the mutable collections
     mutate_foreach_byref_r(my_list);
 
     // compare the mutated collections to the actual results
-    BOOST_CHECK(sequence_equal_byref_n_r(my_list, "\6\5\4\3\2"));
+    BOOST_TEST(sequence_equal_byref_n_r(my_list, "\6\5\4\3\2"));
 
-    return 0;
+    return boost::report_errors();
 }