]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/foreach/test/array_byref.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / foreach / test / array_byref.cpp
index 7fce4ca047a5583a54e2fca1382a2d151b6503f8..349457d15e840181d6fd0d25ac63d2a3b6de6a85 100644 (file)
@@ -8,7 +8,7 @@
    25 August 2005 : Initial version.
 */
 
-#include <boost/test/minimal.hpp>
+#include <boost/core/lightweight_test.hpp>
 #include <boost/foreach.hpp>
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -30,19 +30,19 @@ int const (&my_const_array)[5] = my_array;
 ///////////////////////////////////////////////////////////////////////////////
 // test_main
 //   
-int test_main( int, char*[] )
+int main()
 {
     // non-const containers by reference
-    BOOST_CHECK(sequence_equal_byref_n(my_array, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byref_n(my_array, "\1\2\3\4\5"));
 
     // const containers by reference
-    BOOST_CHECK(sequence_equal_byref_c(my_const_array, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byref_c(my_const_array, "\1\2\3\4\5"));
 
     // mutate the mutable collections
     mutate_foreach_byref(my_array);
 
     // compare the mutated collections to the actual results
-    BOOST_CHECK(sequence_equal_byref_n(my_array, "\2\3\4\5\6"));
+    BOOST_TEST(sequence_equal_byref_n(my_array, "\2\3\4\5\6"));
 
-    return 0;
+    return boost::report_errors();
 }