From 69c2c25729bdec5ae65b60b92b7042b9d7b4229e Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Wed, 4 Oct 2023 13:22:01 +0800 Subject: [PATCH] added SIGTERM bit mask for freeBSD. --- test/v2/process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/v2/process.cpp b/test/v2/process.cpp index 78b182b8f..7fe19b933 100644 --- a/test/v2/process.cpp +++ b/test/v2/process.cpp @@ -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; @@ -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); });