Skip to content

Commit

Permalink
added SIGTERM bit mask for freeBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 4, 2023
1 parent 8ab2332 commit 69c2c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/v2/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(request_exit)
std::this_thread::sleep_for(std::chrono::milliseconds(250));
proc.request_exit();
proc.wait();
BOOST_CHECK_EQUAL(proc.exit_code(), 0);
BOOST_CHECK_EQUAL(proc.exit_code() & ~SIGTERM, 0);
}

bool can_interrupt = true;
Expand Down Expand Up @@ -634,7 +634,7 @@ BOOST_AUTO_TEST_CASE(async_request_exit)
[](boost::system::error_code ec, int res)
{
BOOST_CHECK(!ec);
BOOST_CHECK_EQUAL(bpv::evaluate_exit_code(res), 0);
BOOST_CHECK_EQUAL(bpv::evaluate_exit_code(res) & ~SIGTERM, 0);
}));

tim.async_wait([&](bpv::error_code ec) { sig.emit(asio::cancellation_type::partial); });
Expand Down

0 comments on commit 69c2c25

Please sign in to comment.