From a3186e94c804be551b51aa69c49bd9f55ece0c30 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Wed, 4 Oct 2023 12:20:10 +0800 Subject: [PATCH] added AllocConsole() to win tests. --- test/v2/process.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/v2/process.cpp b/test/v2/process.cpp index a559226ee..e13d6a7d8 100644 --- a/test/v2/process.cpp +++ b/test/v2/process.cpp @@ -161,6 +161,9 @@ BOOST_AUTO_TEST_CASE(interrupt) using boost::unit_test::framework::master_test_suite; const auto pth = master_test_suite().argv[1]; +#if defined(BOOST_PROCESS_V2_WINDOWS) + AllocConsole(); +#endif bpv::process proc(ctx, pth, {"sigint"} #if defined(BOOST_PROCESS_V2_WINDOWS) @@ -603,6 +606,11 @@ BOOST_AUTO_TEST_CASE(async_request_exit) using boost::unit_test::framework::master_test_suite; const auto pth = bpv::filesystem::absolute(master_test_suite().argv[1]); + +#if defined(BOOST_PROCESS_V2_WINDOWS) + AllocConsole(); +#endif + bpv::process proc(ctx, pth, {"sigterm"} #if defined(BOOST_PROCESS_V2_WINDOWS) , bpv::windows::show_window_minimized_not_active