@@ -122,12 +122,9 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
122
122
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsFile (), ToString (statFollow.Mode ));
123
123
UNIT_ASSERT_VALUES_EQUAL_C (true , statFollow.IsSymlink (), ToString (statFollow.Mode ));
124
124
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsDir (), ToString (statFollow.Mode ));
125
-
126
- NFs::RemoveRecursive (GetOutputPath ());
127
125
}
128
126
129
127
Y_UNIT_TEST (SymlinkToNonExistingFileTest) {
130
- NFs::MakeDirectory (GetOutputPath ());
131
128
const auto path = GetOutputPath () / " file_2" ;
132
129
const auto link = GetOutputPath () / " symlink_2" ;
133
130
SAFE_SYMLINK (path, link );
@@ -143,12 +140,9 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
143
140
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsFile (), ToString (statFollow.Mode ));
144
141
UNIT_ASSERT_VALUES_EQUAL_C (true , statFollow.IsSymlink (), ToString (statFollow.Mode ));
145
142
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsDir (), ToString (statFollow.Mode ));
146
-
147
- NFs::RemoveRecursive (GetOutputPath ());
148
143
}
149
144
150
145
Y_UNIT_TEST (SymlinkToFileThatCantExistTest) {
151
- NFs::MakeDirectory (GetOutputPath ());
152
146
const auto path = TFsPath (" /path" ) / " that" / " does" / " not" / " exists" ;
153
147
const auto link = GetOutputPath () / " symlink_3" ;
154
148
SAFE_SYMLINK (path, link );
@@ -164,8 +158,6 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
164
158
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsFile (), ToString (statFollow.Mode ));
165
159
UNIT_ASSERT_VALUES_EQUAL_C (true , statFollow.IsSymlink (), ToString (statFollow.Mode ));
166
160
UNIT_ASSERT_VALUES_EQUAL_C (false , statFollow.IsDir (), ToString (statFollow.Mode ));
167
-
168
- NFs::RemoveRecursive (GetOutputPath ());
169
161
}
170
162
171
163
Y_UNIT_TEST (FileDoesNotExistTest) {
0 commit comments