mapped_file_ut.cpp 463 B

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