]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/units/test/test_limits.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / units / test / test_limits.cpp
index 6057cf94d3f2f0225dbafb3aa4d68c6ab280d2a2..f373431c0ee1c88e237acd7b3de3897347f642d7 100644 (file)
@@ -41,7 +41,7 @@ struct check_quiet_NaN<true> {
     static void apply() {
         quantity<unit_type, T> q((std::numeric_limits<quantity<unit_type, T> >::quiet_NaN)());
         bool test = isnan BOOST_PREVENT_MACRO_SUBSTITUTION (q);
-        BOOST_CHECK(test);
+        BOOST_TEST(test);
     }
 };
 
@@ -60,7 +60,7 @@ struct check_signaling_NaN<true> {
     static void apply() {
         quantity<unit_type, T> q((std::numeric_limits<quantity<unit_type, T> >::signaling_NaN)());
         bool test = isnan BOOST_PREVENT_MACRO_SUBSTITUTION (q);
-        BOOST_CHECK(test);
+        BOOST_TEST(test);
     }
 };
 
@@ -72,8 +72,8 @@ struct check_signaling_NaN<false> {
 
 template<class T>
 void do_check() {
-    #define CHECK_FUNCTION(name) BOOST_CHECK(((std::numeric_limits<T>::name)() == (std::numeric_limits<quantity<unit_type, T> >::name)().value()))
-    #define CHECK_CONSTANT(name) BOOST_CHECK((std::numeric_limits<T>::name == std::numeric_limits<quantity<unit_type, T> >::name))
+    #define CHECK_FUNCTION(name) BOOST_TEST(((std::numeric_limits<T>::name)() == (std::numeric_limits<quantity<unit_type, T> >::name)().value()))
+    #define CHECK_CONSTANT(name) BOOST_TEST((std::numeric_limits<T>::name == std::numeric_limits<quantity<unit_type, T> >::name))
     CHECK_FUNCTION(min);
     CHECK_FUNCTION(max);
     CHECK_FUNCTION(epsilon);
@@ -114,7 +114,7 @@ void do_check() {
     check_signaling_NaN<std::numeric_limits<quantity<unit_type, T> >::has_signaling_NaN>::template apply<T>();
 }
 
-int test_main(int,char *[])
+int main()
 {
     do_check<float>();
     do_check<double>();
@@ -123,5 +123,5 @@ int test_main(int,char *[])
     do_check<unsigned>();
     do_check<std::complex<double> >();
 
-    return(0);
+    return boost::report_errors();
 }