Skip to content

Commit af4fca4

Browse files
committed
Fix fstat_ut (#164)
libc 'open' (in implementation of TFile) doesn't create non-existed parent directories in given path, so we have to do that for it
1 parent 9ac7ed9 commit af4fca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/system/fstat_ut.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
105105
#endif
106106

107107
Y_UNIT_TEST(SymlinkToExistingFileTest) {
108+
NFs::MakeDirectory(GetOutputPath());
108109
const auto path = GetOutputPath() / "file_1";
109110
const auto link = GetOutputPath() / "symlink_1";
110111
TFile(path, EOpenModeFlag::CreateNew | EOpenModeFlag::RdWr);

0 commit comments

Comments
 (0)