blob: 3f3f77559e2b2b20566e756e6ed4b44cac4c8ec2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <library/cpp/deprecated/mapped_file/mapped_file.h>
#include <library/cpp/testing/unittest/registar.h>
#include <util/system/fs.h>
Y_UNIT_TEST_SUITE(TMappedFileTest) {
static const char* FileName_("./mappped_file");
Y_UNIT_TEST(TestFileMapEmpty) {
TFile file(FileName_, CreateAlways | WrOnly);
file.Close();
TMappedFile map;
map.init(FileName_);
map.getData(0);
NFs::Remove(FileName_);
}
};
|