diff options
author | dmasloff <dmasloff@yandex-team.com> | 2024-08-17 23:33:42 +0300 |
---|---|---|
committer | dmasloff <dmasloff@yandex-team.com> | 2024-08-17 23:43:45 +0300 |
commit | 69340f4614e853b9319df4b454ab7497711ee3cd (patch) | |
tree | 9902a3e2f58fe0bd9a157e7b51ad1cc52efa5744 /util/system/fs_ut.cpp | |
parent | a905b53ec410defd5d2c40031ef8b34bb50a29f8 (diff) | |
download | ydb-69340f4614e853b9319df4b454ab7497711ee3cd.tar.gz |
Set SpacesInLineCommentPrefix to 1 in /util
Set SpacesInLineCommentPrefix to 1 in /util
3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
Diffstat (limited to 'util/system/fs_ut.cpp')
-rw-r--r-- | util/system/fs_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/fs_ut.cpp b/util/system/fs_ut.cpp index ddee6670a8..2df9a3b2a4 100644 --- a/util/system/fs_ut.cpp +++ b/util/system/fs_ut.cpp @@ -6,7 +6,7 @@ #include "fstat.h" #include <util/folder/path.h> -//WARNING: on windows the test must be run with administative rules +// WARNING: on windows the test must be run with administative rules class TFsTest: public TTestBase { UNIT_TEST_SUITE(TFsTest); @@ -45,7 +45,7 @@ void TFsTest::TestCreateRemove() { UNIT_ASSERT(NFs::Exists(dir1)); TFsPath subdir1 = dir1 / "a" / "b"; - //TFsPath link = dir1 / "link"; + // TFsPath link = dir1 / "link"; UNIT_ASSERT(NFs::MakeDirectoryRecursive(subdir1, NFs::FP_COMMON_FILE, true)); UNIT_ASSERT(NFs::Exists(subdir1)); @@ -59,7 +59,7 @@ void TFsTest::TestCreateRemove() { Touch(file1); Touch(file2); Touch(file3); - //UNIT_ASSERT(NFs::SymLink(file3.RealPath(), link)); + // UNIT_ASSERT(NFs::SymLink(file3.RealPath(), link)); UNIT_ASSERT(NFs::MakeDirectoryRecursive(dir1 / "subdir1" / "subdir2" / "subdir3" / "subdir4", NFs::FP_COMMON_FILE, false)); UNIT_ASSERT(NFs::MakeDirectoryRecursive(dir1 / "subdir1" / "subdir2", NFs::FP_COMMON_FILE, false)); @@ -80,7 +80,7 @@ void TFsTest::TestCreateRemove() { UNIT_ASSERT(NFs::Exists(file1)); UNIT_ASSERT(NFs::Exists(file2)); UNIT_ASSERT(NFs::Exists(file3)); - //UNIT_ASSERT(NFs::Exists(link)); + // UNIT_ASSERT(NFs::Exists(link)); UNIT_ASSERT(!NFs::Remove(dir1)); NFs::RemoveRecursive(dir1); @@ -88,7 +88,7 @@ void TFsTest::TestCreateRemove() { UNIT_ASSERT(!NFs::Exists(file1)); UNIT_ASSERT(!NFs::Exists(file2)); UNIT_ASSERT(!NFs::Exists(file3)); - //UNIT_ASSERT(!NFs::Exists(link)); + // UNIT_ASSERT(!NFs::Exists(link)); UNIT_ASSERT(!NFs::Exists(subdir1)); UNIT_ASSERT(!NFs::Exists(longfile)); UNIT_ASSERT(!NFs::Exists(dir1)); @@ -186,7 +186,7 @@ static void RunHardlinkTest(const TFsPath& src, const TFsPath& dst) { void TFsTest::TestHardlink() { RunHardlinkTest("tempfile", "hardlinkfile"); - RunHardlinkTest("tempfile_абвг", "hardlinkfile_абвг"); //utf-8 names + RunHardlinkTest("tempfile_абвг", "hardlinkfile_абвг"); // utf-8 names } static void RunSymLinkTest(TString fileLocalName, TString symLinkName) { @@ -240,7 +240,7 @@ static void RunSymLinkTest(TString fileLocalName, TString symLinkName) { { TFileStat fs(linkD1, true); UNIT_ASSERT(!fs.IsFile()); - //UNIT_ASSERT(fs.IsDir()); // failed on unix + // UNIT_ASSERT(fs.IsDir()); // failed on unix UNIT_ASSERT(fs.IsSymlink()); } { @@ -253,7 +253,7 @@ static void RunSymLinkTest(TString fileLocalName, TString symLinkName) { { TFileStat fs(symLinkName, true); - //UNIT_ASSERT(fs.IsFile()); // no evidence that symlink has to be a file as well + // UNIT_ASSERT(fs.IsFile()); // no evidence that symlink has to be a file as well UNIT_ASSERT(!fs.IsDir()); UNIT_ASSERT(fs.IsSymlink()); } @@ -277,7 +277,7 @@ static void RunSymLinkTest(TString fileLocalName, TString symLinkName) { void TFsTest::TestSymlink() { // if previous running was failed RunSymLinkTest("f.txt", "fl.txt"); - RunSymLinkTest("f_абвг.txt", "fl_абвг.txt"); //utf-8 names + RunSymLinkTest("f_абвг.txt", "fl_абвг.txt"); // utf-8 names } void TFsTest::TestCwdOpts() { |