]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/foreach/test/pair_byval.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / foreach / test / pair_byval.cpp
index 90db6cd791d6d9a91ac2878358768b42946a6d80..863f0fb4f08b67fac8932e55c05dd6fca3e934dd 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,16 +31,16 @@ std::pair<int const*,int const*> const my_const_pair(my_array,my_array+5);
 ///////////////////////////////////////////////////////////////////////////////
 // test_main
 //   
-int test_main( int, char*[] )
+int main()
 {
     boost::mpl::true_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_pair);
     (void)p;
 
     // non-const containers by value
-    BOOST_CHECK(sequence_equal_byval_n(my_pair, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byval_n(my_pair, "\1\2\3\4\5"));
 
     // const containers by value
-    BOOST_CHECK(sequence_equal_byval_c(my_const_pair, "\1\2\3\4\5"));
+    BOOST_TEST(sequence_equal_byval_c(my_const_pair, "\1\2\3\4\5"));
 
-    return 0;
+    return boost::report_errors();
 }