]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/numeric/conversion/test/converter_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / numeric / conversion / test / converter_test.cpp
index b5f1544657552fed514475ff891b2602f5037c48..2c0b4e06752d6241ed4e8d511a4a1b5c78459917 100644 (file)
@@ -368,7 +368,7 @@ void test_round_style( MATCH_FNTPL_ARG(T), MATCH_FNTPL_ARG(S) )
 void test_round_even( double n, double x )
 {
   double r = boost::numeric::RoundEven<double>::nearbyint(n);
-  BOOST_CHECK( r == x ) ;
+  BOOST_TEST( r == x ) ;
 }
 
 void test_round_even()
@@ -419,7 +419,7 @@ void test_converter_as_function_object()
 
   // Match 'w' and 'i' which should be equal.
   bool double_to_int_OK = std::equal(W.begin(),W.end(),I.begin()) ;
-  BOOST_CHECK_MESSAGE(double_to_int_OK, "converter (int,double) as function object");
+  BOOST_TEST(double_to_int_OK);
 
   // Create a sequence of double values from s using a default numeric::converter (which should be the trivial conv).
   std::vector<double> D ;
@@ -431,7 +431,7 @@ void test_converter_as_function_object()
 
   // Match 's' and 'd' which should be equal.
   bool double_to_double_OK = std::equal(S.begin(),S.end(),D.begin()) ;
-  BOOST_CHECK_MESSAGE(double_to_double_OK, "converter (double,double) as function object");
+  BOOST_TEST(double_to_double_OK);
 }
 
 #if BOOST_WORKAROUND(__IBMCPP__, <= 600 ) // VCAPP6
@@ -545,7 +545,7 @@ void test_optimizations()
   //---------------------------------
 }
 
-int test_main( int, char* argv[] )
+int main()
 {
   std::cout << std::setprecision( std::numeric_limits<long double>::digits10 ) ;
 
@@ -556,7 +556,7 @@ int test_main( int, char* argv[] )
   test_converter_as_function_object();
   test_optimizations() ;
 
-  return 0;
+  return boost::report_errors();
 }
 //---------------------------------------------------------------------------