]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/phoenix/test/bll_compatibility/algorithm_test.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / phoenix / test / bll_compatibility / algorithm_test.cpp
index ae8f77a30091ae61ca688c3ba87955b102b8d3d6..ef0fff11c01d55571b6a202641c77f78e4092911 100644 (file)
@@ -11,7 +11,7 @@
 
 // test using BLL and boost::function
 
-#include <boost/test/minimal.hpp>    // see "Header Implementation Option"
+#include <boost/core/lightweight_test.hpp>
 
 /*
 #include "boost/lambda/lambda.hpp"
@@ -65,20 +65,14 @@ void test_foreach() {
                 phoenix::for_each( _1,
                      lambda[(ref(sum) += _1)]));
 
-  BOOST_CHECK(sum == (199 + 1)/ 2 * 199);
+  BOOST_TEST_EQ(sum, (199 + 1)/ 2 * 199);
 }
 
 // More tests needed (for all algorithms)
 
-int test_main(int, char *[]) {
-
+int main()
+{
   test_foreach();
 
-  return 0;
+  return boost::report_errors();
 }
-
-
-
-
-
-