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();
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)
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);
}
}*/
+
BOOST_AUTO_TEST_SUITE_END();