diff options
author | pyos <pyos@yandex-team.ru> | 2022-02-10 16:47:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:49 +0300 |
commit | b031b9d140bcd39f4ef2764e24d37bee317aaf23 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/folder | |
parent | ef985e41af0868676d7a2275f1d90261253ddf3b (diff) | |
download | ydb-b031b9d140bcd39f4ef2764e24d37bee317aaf23.tar.gz |
Restoring authorship annotation for <pyos@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder')
-rw-r--r-- | util/folder/path.cpp | 4 | ||||
-rw-r--r-- | util/folder/path.h | 2 | ||||
-rw-r--r-- | util/folder/path_ut.cpp | 20 |
3 files changed, 13 insertions, 13 deletions
diff --git a/util/folder/path.cpp b/util/folder/path.cpp index 6aa49eab88..bfe0c67d68 100644 --- a/util/folder/path.cpp +++ b/util/folder/path.cpp @@ -311,12 +311,12 @@ void TFsPath::Touch() const { // XXX: move implementation to util/somewhere. TFsPath TFsPath::RealPath() const { CheckDefined(); - return ::RealPath(*this); + return ::RealPath(*this); } TFsPath TFsPath::RealLocation() const { CheckDefined(); - return ::RealLocation(*this); + return ::RealLocation(*this); } TFsPath TFsPath::ReadLink() const { diff --git a/util/folder/path.h b/util/folder/path.h index 5de67c1597..2fb4d6b4ef 100644 --- a/util/folder/path.h +++ b/util/folder/path.h @@ -208,7 +208,7 @@ private: private: TString Path_; - /// cache + /// cache mutable TSimpleIntrusivePtr<TSplit> Split_; }; diff --git a/util/folder/path_ut.cpp b/util/folder/path_ut.cpp index 984a9333b0..e6a3451016 100644 --- a/util/folder/path_ut.cpp +++ b/util/folder/path_ut.cpp @@ -175,17 +175,17 @@ Y_UNIT_TEST_SUITE(TFsPathTests) { #ifndef _win_ Y_UNIT_TEST(TestRealPath) { UNIT_ASSERT(TFsPath(".").RealPath().IsDirectory()); - - TTestDirectory td("TestRealPath"); - TFsPath link = td.Child("link"); - TFsPath target1 = td.Child("target1"); - target1.Touch(); - TFsPath target2 = td.Child("target2"); - target2.Touch(); - UNIT_ASSERT(NFs::SymLink(target1.RealPath(), link.GetPath())); + + TTestDirectory td("TestRealPath"); + TFsPath link = td.Child("link"); + TFsPath target1 = td.Child("target1"); + target1.Touch(); + TFsPath target2 = td.Child("target2"); + target2.Touch(); + UNIT_ASSERT(NFs::SymLink(target1.RealPath(), link.GetPath())); UNIT_ASSERT_VALUES_EQUAL(link.RealPath(), target1.RealPath()); - UNIT_ASSERT(NFs::Remove(link.GetPath())); - UNIT_ASSERT(NFs::SymLink(target2.RealPath(), link.GetPath())); + UNIT_ASSERT(NFs::Remove(link.GetPath())); + UNIT_ASSERT(NFs::SymLink(target2.RealPath(), link.GetPath())); UNIT_ASSERT_VALUES_EQUAL(link.RealPath(), target2.RealPath()); // must not cache old value } #endif |