Skip to content

Commit

Permalink
added AllocConsole() to win tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 4, 2023
1 parent 3093ff7 commit a3186e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/v2/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a3186e9

Please sign in to comment.