aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/shellcommand_ut.cpp
diff options
context:
space:
mode:
authorstakanviski <stakanviski@yandex-team.ru>2022-02-10 16:50:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:01 +0300
commitda8356a5535e6177965cba3bbae73c5fb28f6ccc (patch)
tree61a6bb4fa5e2c51ac92f621f5a9eba5658d8aba0 /util/system/shellcommand_ut.cpp
parentc345445ed6cb1fc34136ef6f02ce07f5aff9e504 (diff)
downloadydb-da8356a5535e6177965cba3bbae73c5fb28f6ccc.tar.gz
Restoring authorship annotation for <stakanviski@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/shellcommand_ut.cpp')
-rw-r--r--util/system/shellcommand_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/util/system/shellcommand_ut.cpp b/util/system/shellcommand_ut.cpp
index 9d849279d2..bfe81c8654 100644
--- a/util/system/shellcommand_ut.cpp
+++ b/util/system/shellcommand_ut.cpp
@@ -226,32 +226,32 @@ Y_UNIT_TEST_SUITE(TShellCommandTest) {
Y_UNIT_TEST(TestIO) {
// descriptive test: use all options
TShellCommandOptions options;
- options.SetAsync(true);
+ options.SetAsync(true);
options.SetQuoteArguments(false);
options.SetLatency(10);
options.SetClearSignalMask(true);
options.SetCloseAllFdsOnExec(true);
- options.SetCloseInput(false);
+ options.SetCloseInput(false);
TGuardedStringStream write;
options.SetInputStream(&write);
TGuardedStringStream read;
options.SetOutputStream(&read);
options.SetUseShell(true);
- TShellCommand cmd("cat", options);
+ TShellCommand cmd("cat", options);
cmd.Run();
-
- write << "alpha" << NL;
- while (read.Str() != "alpha" NL) {
- Sleep(TDuration::MilliSeconds(10));
- }
-
- write << "omega" << NL;
- while (read.Str() != "alpha" NL "omega" NL) {
- Sleep(TDuration::MilliSeconds(10));
- }
-
- write << "zeta" << NL;
+
+ write << "alpha" << NL;
+ while (read.Str() != "alpha" NL) {
+ Sleep(TDuration::MilliSeconds(10));
+ }
+
+ write << "omega" << NL;
+ while (read.Str() != "alpha" NL "omega" NL) {
+ Sleep(TDuration::MilliSeconds(10));
+ }
+
+ write << "zeta" << NL;
cmd.CloseInput();
cmd.Wait();