std::future<std::string> fut;
std::error_code ec;
- ios.post([&]
- {
- bp::system(
- master_test_suite().argv[1],
- "test", "--echo-stdout", "abc",
- bp::std_out > fut,
- ios,
- ec
- );
- BOOST_REQUIRE(!ec);
- });
+ boost::asio::post(
+ ios.get_executor(),
+ [&] {
+ bp::system(
+ master_test_suite().argv[1],
+ "test", "--echo-stdout", "abc",
+ bp::std_out > fut,
+ ios,
+ ec
+ );
+ BOOST_REQUIRE(!ec);
+ }
+ );
ios.run();