File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ auto test_iostreams() -> bool {
97
97
}
98
98
99
99
auto test_process () -> bool {
100
- constexpr int cWaitTime = 10 ;
101
100
try {
102
101
boost::asio::io_context io_context;
103
102
boost::process::v2::process process{
@@ -107,10 +106,8 @@ auto test_process() -> bool {
107
106
boost::process::process_stdio{.in {}, .out {nullptr }, .err {nullptr }}
108
107
};
109
108
std::future<int > result = process.async_wait (boost::asio::use_future);
110
- io_context.run_for (std::chrono::milliseconds (cWaitTime));
111
- if (std::future_status::ready != result.wait_for (std::chrono::milliseconds (cWaitTime))) {
112
- return false ;
113
- }
109
+ io_context.run ();
110
+ result.wait ();
114
111
return 0 == result.get ();
115
112
} catch (std::exception const & e) {
116
113
return false ;
You can’t perform that action at this time.
0 commit comments