diff options
author | myltsev <myltsev@yandex-team.ru> | 2022-02-10 16:46:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:03 +0300 |
commit | 9166d66c30c23c9e85a7c88185a068987148d23f (patch) | |
tree | 421bdcec5755d9e441c485560aab5ab8d74c7475 /util/stream/file_ut.cpp | |
parent | 8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (diff) | |
download | ydb-9166d66c30c23c9e85a7c88185a068987148d23f.tar.gz |
Restoring authorship annotation for <myltsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/file_ut.cpp')
-rw-r--r-- | util/stream/file_ut.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/file_ut.cpp b/util/stream/file_ut.cpp index ac0f09796e..7780a72e04 100644 --- a/util/stream/file_ut.cpp +++ b/util/stream/file_ut.cpp @@ -56,19 +56,19 @@ Y_UNIT_TEST_SUITE(TFileTest) { UNIT_ASSERT(s.empty()); } } - -#ifdef _unix_ - Y_UNIT_TEST(PipeReadLineTest) { - int fds[2]; - UNIT_ASSERT(pipe(fds) == 0); - TFile readEnd(fds[0]); - TFileInput fileInput(readEnd); - UNIT_ASSERT_VALUES_EQUAL(write(fds[1], "hello\n", 6), 6); - - TString line; - UNIT_ASSERT(fileInput.ReadLine(line)); - UNIT_ASSERT_STRINGS_EQUAL(line, "hello"); - close(fds[1]); - } -#endif + +#ifdef _unix_ + Y_UNIT_TEST(PipeReadLineTest) { + int fds[2]; + UNIT_ASSERT(pipe(fds) == 0); + TFile readEnd(fds[0]); + TFileInput fileInput(readEnd); + UNIT_ASSERT_VALUES_EQUAL(write(fds[1], "hello\n", 6), 6); + + TString line; + UNIT_ASSERT(fileInput.ReadLine(line)); + UNIT_ASSERT_STRINGS_EQUAL(line, "hello"); + close(fds[1]); + } +#endif } |