aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/path_ut.cpp
diff options
context:
space:
mode:
authorpyos <pyos@yandex-team.ru>2022-02-10 16:47:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:49 +0300
commitb031b9d140bcd39f4ef2764e24d37bee317aaf23 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/folder/path_ut.cpp
parentef985e41af0868676d7a2275f1d90261253ddf3b (diff)
downloadydb-b031b9d140bcd39f4ef2764e24d37bee317aaf23.tar.gz
Restoring authorship annotation for <pyos@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path_ut.cpp')
-rw-r--r--util/folder/path_ut.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/folder/path_ut.cpp b/util/folder/path_ut.cpp
index 984a9333b09..e6a34510164 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