diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:10 +0300 |
commit | 1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/fs_ut.cpp | |
parent | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff) | |
download | ydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/fs_ut.cpp')
-rw-r--r-- | util/system/fs_ut.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/fs_ut.cpp b/util/system/fs_ut.cpp index 7739866acb..de071ebf55 100644 --- a/util/system/fs_ut.cpp +++ b/util/system/fs_ut.cpp @@ -6,7 +6,7 @@ #include "sysstat.h" #include "fstat.h" #include <util/folder/dirut.h> -#include <util/folder/path.h> +#include <util/folder/path.h> //WARNING: on windows the test must be run with administative rules @@ -114,7 +114,7 @@ void RunRenameTest(TFsPath src, TFsPath dst) { file.Write("123", 3); } - UNIT_ASSERT(NFs::Rename(src, dst)); + UNIT_ASSERT(NFs::Rename(src, dst)); UNIT_ASSERT(NFs::Exists(dst)); UNIT_ASSERT(!NFs::Exists(src)); @@ -128,7 +128,7 @@ void RunRenameTest(TFsPath src, TFsPath dst) { TFile file(dir1 / src, CreateNew | WrOnly); file.Write("123", 3); } - UNIT_ASSERT(NFs::Rename(dir1, dir2)); + UNIT_ASSERT(NFs::Rename(dir1, dir2)); UNIT_ASSERT(NFs::Exists(dir2 / src)); UNIT_ASSERT(!NFs::Exists(dir1)); @@ -137,11 +137,11 @@ void RunRenameTest(TFsPath src, TFsPath dst) { UNIT_ASSERT_VALUES_EQUAL(file.GetLength(), 3); } - UNIT_ASSERT(!NFs::Remove(src)); - UNIT_ASSERT(NFs::Remove(dst)); - UNIT_ASSERT(!NFs::Remove(dir1)); - UNIT_ASSERT(NFs::Remove(dir2 / src)); - UNIT_ASSERT(NFs::Remove(dir2)); + UNIT_ASSERT(!NFs::Remove(src)); + UNIT_ASSERT(NFs::Remove(dst)); + UNIT_ASSERT(!NFs::Remove(dir1)); + UNIT_ASSERT(NFs::Remove(dir2 / src)); + UNIT_ASSERT(NFs::Remove(dir2)); } void TFsTest::TestRename() { @@ -182,8 +182,8 @@ static void RunHardlinkTest(const TFsPath& src, const TFsPath& dst) { UNIT_ASSERT_VALUES_EQUAL(file.GetLength(), 5); } - UNIT_ASSERT(NFs::Remove(dst)); - UNIT_ASSERT(NFs::Remove(src)); + UNIT_ASSERT(NFs::Remove(dst)); + UNIT_ASSERT(NFs::Remove(src)); } void TFsTest::TestHardlink() { @@ -260,20 +260,20 @@ static void RunSymLinkTest(TString fileLocalName, TString symLinkName) { UNIT_ASSERT(fs.IsSymlink()); } - UNIT_ASSERT(NFs::Remove(symLinkName)); + UNIT_ASSERT(NFs::Remove(symLinkName)); UNIT_ASSERT(NFs::Exists(srcFile)); - UNIT_ASSERT(NFs::Remove(linkD1)); + UNIT_ASSERT(NFs::Remove(linkD1)); UNIT_ASSERT(NFs::Exists(srcFile)); - UNIT_ASSERT(!NFs::Remove(subDir)); + UNIT_ASSERT(!NFs::Remove(subDir)); - UNIT_ASSERT(NFs::Remove(srcFile)); - UNIT_ASSERT(NFs::Remove(linkD2)); - UNIT_ASSERT(NFs::Remove(dangling)); - UNIT_ASSERT(NFs::Remove(subsubDir1)); - UNIT_ASSERT(NFs::Remove(subsubDir2)); - UNIT_ASSERT(NFs::Remove(subDir)); + UNIT_ASSERT(NFs::Remove(srcFile)); + UNIT_ASSERT(NFs::Remove(linkD2)); + UNIT_ASSERT(NFs::Remove(dangling)); + UNIT_ASSERT(NFs::Remove(subsubDir1)); + UNIT_ASSERT(NFs::Remove(subsubDir2)); + UNIT_ASSERT(NFs::Remove(subDir)); } void TFsTest::TestSymlink() { |