From f5b479fbabdceda48e3fd20d60bef1af393799cc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2020 13:39:44 +0300 Subject: stream.hpp -> process_io.hpp, move IO there --- test/unit_tests/process.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/unit_tests') diff --git a/test/unit_tests/process.cpp b/test/unit_tests/process.cpp index 0a6cb27..a126f86 100644 --- a/test/unit_tests/process.cpp +++ b/test/unit_tests/process.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -35,7 +36,7 @@ BOOST_FIXTURE_TEST_CASE(echo, WithEchoExe) { BOOST_FIXTURE_TEST_CASE(echo_stdout_to_pipe, WithEchoExe) { const CommandLine cmd_line{get_echo_exe(), {"aaa", "bbb", "ccc"}}; - Process::IO io; + process::IO io; Pipe stdout_pipe; io.std_out = Stdout{stdout_pipe}; const auto process = Process::create(cmd_line, std::move(io)); @@ -51,7 +52,7 @@ BOOST_FIXTURE_TEST_CASE(echo_stdout_to_file, WithEchoExe) { const RemoveFileGuard remove_stdout_file{stdout_path}; const CommandLine cmd_line{get_echo_exe(), {"XXX", "YYY", "ZZZ"}}; - Process::IO io; + process::IO io; io.std_out = Stdout{stdout_path}; const auto process = Process::create(cmd_line, std::move(io)); process.wait(); @@ -69,7 +70,7 @@ BOOST_FIXTURE_TEST_CASE(echo_stdin_from_file, WithEchoExe) { File::open_w(stdin_path).write(stdin16); const CommandLine cmd_line{get_echo_exe()}; - Process::IO io; + process::IO io; Pipe stdout_pipe; io.std_in = Stdin{stdin_path}; io.std_out = Stdout{stdout_pipe}; -- cgit v1.2.3