aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/shellcommand_ut.cpp
diff options
context:
space:
mode:
authordeshevoy <deshevoy@yandex-team.ru>2022-02-10 16:46:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:56 +0300
commite988f30484abe5fdeedcc7a5d3c226c01a21800c (patch)
tree0a217b173aabb57b7e51f8a169989b1a3e0309fe /util/system/shellcommand_ut.cpp
parent33ee501c05d3f24036ae89766a858930ae66c548 (diff)
downloadydb-e988f30484abe5fdeedcc7a5d3c226c01a21800c.tar.gz
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/shellcommand_ut.cpp')
-rw-r--r--util/system/shellcommand_ut.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/shellcommand_ut.cpp b/util/system/shellcommand_ut.cpp
index 9d849279d2..ca0fa88ef5 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);