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