]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/yap/test/lazy_vector_alloc_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / yap / test / lazy_vector_alloc_test.cpp
index e074247bad56deeecf6cac6b5f0b27678d68e6ae..b3e259301df9b2c93e611c7d8e58979363c782ee 100644 (file)
@@ -10,7 +10,7 @@
 #include <iostream>
 #include <vector>
 
-#include <boost/test/minimal.hpp>
+#include <boost/core/lightweight_test.hpp>
 
 
 int allocations = 0;
@@ -86,7 +86,7 @@ struct lazy_vector : lazy_vector_expr<
 };
 
 
-int test_main(int, char * [])
+int main()
 {
     lazy_vector v1{std::vector<double>(4, 1.0)};
     lazy_vector v2{std::vector<double>(4, 2.0)};
@@ -102,7 +102,7 @@ int test_main(int, char * [])
     std::cout << '{' << v1[0] << ',' << v1[1] << ',' << v1[2] << ',' << v1[3]
               << '}' << "\n";
 
-    BOOST_CHECK(allocations == 0);
+    BOOST_TEST(allocations == 0);
 
-    return 0;
+    return boost::report_errors();
 }