diff options
Diffstat (limited to 'util/system/shellcommand_ut.cpp')
-rw-r--r-- | util/system/shellcommand_ut.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/shellcommand_ut.cpp b/util/system/shellcommand_ut.cpp index ca0fa88ef5..9d849279d2 100644 --- a/util/system/shellcommand_ut.cpp +++ b/util/system/shellcommand_ut.cpp @@ -11,7 +11,7 @@ #include <util/folder/dirut.h> #include <util/random/random.h> -#include <util/stream/file.h> +#include <util/stream/file.h> #include <util/stream/str.h> #include <util/stream/mem.h> #include <util/string/strip.h> @@ -418,24 +418,24 @@ Y_UNIT_TEST_SUITE(TShellCommandTest) { UNIT_ASSERT_VALUES_EQUAL(stream.Str(), input + NL); } - Y_UNIT_TEST(TestPipeInput) { - TShellCommandOptions options; - options.SetAsync(true); - options.PipeInput(); - - TShellCommand cmd(catCommand, options); - cmd.Run(); - - { - TFile file(cmd.GetInputHandle().Release()); - TUnbufferedFileOutput fo(file); - fo << "hello" << Endl; - } - - cmd.Wait(); - UNIT_ASSERT_VALUES_EQUAL(cmd.GetOutput(), "hello" NL); - UNIT_ASSERT_VALUES_EQUAL(cmd.GetError().size(), 0u); - } + Y_UNIT_TEST(TestPipeInput) { + TShellCommandOptions options; + options.SetAsync(true); + options.PipeInput(); + + TShellCommand cmd(catCommand, options); + cmd.Run(); + + { + TFile file(cmd.GetInputHandle().Release()); + TUnbufferedFileOutput fo(file); + fo << "hello" << Endl; + } + + cmd.Wait(); + UNIT_ASSERT_VALUES_EQUAL(cmd.GetOutput(), "hello" NL); + UNIT_ASSERT_VALUES_EQUAL(cmd.GetError().size(), 0u); + } Y_UNIT_TEST(TestPipeOutput) { TShellCommandOptions options; options.SetAsync(true); |