mirror of
https://github.com/boostorg/process.git
synced 2026-01-21 17:12:19 +00:00
Compare commits
1 Commits
develop
...
osx-exit-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6ad7035e9 |
@@ -148,12 +148,17 @@ BOOST_AUTO_TEST_CASE(async_nowait, *boost::unit_test::timeout(10))
|
|||||||
boost::asio::io_context io_context;
|
boost::asio::io_context io_context;
|
||||||
bp::child c(
|
bp::child c(
|
||||||
master_test_suite().argv[1],
|
master_test_suite().argv[1],
|
||||||
"test", "--exit-code", "221",
|
"test", "--exit-code", "121",
|
||||||
ec,
|
ec,
|
||||||
bp::on_exit=[](int exit_code, std::error_code) mutable {},
|
bp::on_exit=[](int exit_code, std::error_code) mutable {},
|
||||||
io_context
|
io_context
|
||||||
);
|
);
|
||||||
BOOST_REQUIRE(!ec);
|
BOOST_REQUIRE(!ec);
|
||||||
io_context.run_for(std::chrono::milliseconds(100));
|
while (c.running())
|
||||||
BOOST_CHECK_EQUAL(221, c.exit_code());
|
{
|
||||||
|
io_context.run_for(std::chrono::milliseconds(10));
|
||||||
|
io_context.restart();
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_CHECK_EQUAL(121, c.exit_code());
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user