Skip to content

Commit b3ea0c8

Browse files
committed
Revert "Fix fstat_ut (ydb-platform#164)"
This reverts commit b749b9a.
1 parent 298518e commit b3ea0c8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

util/system/fstat_ut.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,9 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
122122
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsFile(), ToString(statFollow.Mode));
123123
UNIT_ASSERT_VALUES_EQUAL_C(true, statFollow.IsSymlink(), ToString(statFollow.Mode));
124124
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsDir(), ToString(statFollow.Mode));
125-
126-
NFs::RemoveRecursive(GetOutputPath());
127125
}
128126

129127
Y_UNIT_TEST(SymlinkToNonExistingFileTest) {
130-
NFs::MakeDirectory(GetOutputPath());
131128
const auto path = GetOutputPath() / "file_2";
132129
const auto link = GetOutputPath() / "symlink_2";
133130
SAFE_SYMLINK(path, link);
@@ -143,12 +140,9 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
143140
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsFile(), ToString(statFollow.Mode));
144141
UNIT_ASSERT_VALUES_EQUAL_C(true, statFollow.IsSymlink(), ToString(statFollow.Mode));
145142
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsDir(), ToString(statFollow.Mode));
146-
147-
NFs::RemoveRecursive(GetOutputPath());
148143
}
149144

150145
Y_UNIT_TEST(SymlinkToFileThatCantExistTest) {
151-
NFs::MakeDirectory(GetOutputPath());
152146
const auto path = TFsPath("/path") / "that" / "does" / "not" / "exists";
153147
const auto link = GetOutputPath() / "symlink_3";
154148
SAFE_SYMLINK(path, link);
@@ -164,8 +158,6 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
164158
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsFile(), ToString(statFollow.Mode));
165159
UNIT_ASSERT_VALUES_EQUAL_C(true, statFollow.IsSymlink(), ToString(statFollow.Mode));
166160
UNIT_ASSERT_VALUES_EQUAL_C(false, statFollow.IsDir(), ToString(statFollow.Mode));
167-
168-
NFs::RemoveRecursive(GetOutputPath());
169161
}
170162

171163
Y_UNIT_TEST(FileDoesNotExistTest) {

0 commit comments

Comments
 (0)