Skip to content

Commit 9ac7ed9

Browse files
committed
Fix util/system/direct_io_ut (#164)
'direct_io_ut' from 'util/stream' doesn't remove its file, so 'direct_io_ut' from 'util/system' failed checking if the same file doesn't exist
1 parent d8ffc2f commit 9ac7ed9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/stream/direct_io_ut.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <util/generic/string.h>
44
#include <util/generic/array_size.h>
5+
#include <util/system/fs.h>
56

67
#include "buffered.h"
78
#include "direct_io.h"
@@ -54,6 +55,7 @@ Y_UNIT_TEST_SUITE(TDirectIOTests) {
5455
}
5556

5657
UNIT_ASSERT_VALUES_EQUAL(bytesRead, numBufToWrite * BUFFER_SIZE);
58+
NFs::Remove(fileName);
5759
}
5860

5961
Y_UNIT_TEST(ReadWriteTest) {

0 commit comments

Comments
 (0)