]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/process/test/async.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / process / test / async.cpp
index 08c688657d1b4f477027e8a1b86584b6d67fef5f..e12f4bf53ef08e3c23b07d69c07ec711cb8ed392 100644 (file)
@@ -182,8 +182,8 @@ BOOST_AUTO_TEST_CASE(async_wait_different_contexts, *boost::unit_test::timeout(1
     BOOST_REQUIRE(!ec);
 
     // Regression test for #143: make sure each io_context handles its own children
-    std::thread thr1{[&]{io_context1.run();}};
-    std::thread thr2{[&]{io_context2.run();}};
+    std::thread thr1{[&]() noexcept {io_context1.run();}};
+    std::thread thr2{[&]() noexcept {io_context2.run();}};
 
     thr1.join();
     thr2.join();
@@ -214,7 +214,7 @@ BOOST_AUTO_TEST_CASE(async_wait_abort, *boost::unit_test::timeout(5))
     int exit_code = 0;
     bp::child c(
         master_test_suite().argv[1],
-        "test", "--abort",
+        "test", "exit-code", "42",
         ec,
         io_context,
         bp::on_exit([&](int exit, const std::error_code& ec_in)
@@ -232,7 +232,7 @@ BOOST_AUTO_TEST_CASE(async_wait_abort, *boost::unit_test::timeout(5))
     io_context.run();
 
     BOOST_CHECK(exit_called);
-    BOOST_CHECK_NE(exit_code,  0);
+    BOOST_CHECK_NE(exit_code,  42);
     BOOST_CHECK_EQUAL(c.exit_code(), exit_code);
 }
 
@@ -413,4 +413,5 @@ BOOST_AUTO_TEST_CASE(mixed_async, *boost::unit_test::timeout(5))
 
 }*/
 
+
 BOOST_AUTO_TEST_SUITE_END();