]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/foreach/test/cstr_byref.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / foreach / test / cstr_byref.cpp
index f25611e93ee66278aab4b6c0d5879c22af2a5f90..56779460d442a4cd1e8979fae3217eaa92fbc639 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>
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -31,19 +31,19 @@ char const *my_const_ntcs  = my_ntcs;
 ///////////////////////////////////////////////////////////////////////////////
 // test_main
 //   
-int test_main( int, char*[] )
+int main()
 {
     // non-const containers by reference
-    BOOST_CHECK(sequence_equal_byref_n(my_ntcs, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byref_n(my_ntcs, "\1\2\3\4\5"));
 
     // const containers by reference
-    BOOST_CHECK(sequence_equal_byref_c(my_const_ntcs, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byref_c(my_const_ntcs, "\1\2\3\4\5"));
 
     // mutate the mutable collections
     mutate_foreach_byref(my_ntcs);
 
     // compare the mutated collections to the actual results
-    BOOST_CHECK(sequence_equal_byref_n(my_ntcs, "\2\3\4\5\6"));
+    BOOST_TEST(sequence_equal_byref_n(my_ntcs, "\2\3\4\5\6"));
 
-    return 0;
+    return boost::report_errors();
 }