From a5a0e690cec0682853ff196e26433ba252604fa9 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 14 Nov 2024 09:52:47 -0600 Subject: [PATCH] updates --- .../src/fuse_drive_test_legacy.cpp | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/repertory/repertory_test/src/fuse_drive_test_legacy.cpp b/repertory/repertory_test/src/fuse_drive_test_legacy.cpp index da3a19f6..41ba37cd 100644 --- a/repertory/repertory_test/src/fuse_drive_test_legacy.cpp +++ b/repertory/repertory_test/src/fuse_drive_test_legacy.cpp @@ -1,38 +1,3 @@ -// static void test_write_and_read(const std::string & /* api_path */, -// const std::string &file_path) { -// std::cout << __FUNCTION__ << std::endl; -// auto fd = -// open(file_path.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP); -// EXPECT_LE(1, fd); -// -// std::string data = "TestData"; -// EXPECT_EQ(data.size(), -// static_cast(write(fd, data.data(), data.size()))); -// EXPECT_EQ(0, lseek(fd, 0, SEEK_SET)); -// fsync(fd); -// -// data_buffer read_data; -// read_data.resize(data.size()); -// EXPECT_EQ(data.size(), static_cast( -// read(fd, read_data.data(), read_data.size()))); -// -// EXPECT_EQ(0, memcmp(data.data(), read_data.data(), data.size())); -// -// EXPECT_EQ(0, close(fd)); -// -// std::this_thread::sleep_for(SLEEP_SECONDS); -// -// std::uint64_t file_size{}; -// EXPECT_TRUE(utils::file::get_file_size(file_path, file_size)); -// EXPECT_EQ(data.size(), file_size); -// -// // filesystem_item fsi{}; -// // EXPECT_EQ(api_error::success, -// // provider.get_filesystem_item(api_path, false, fsi)); -// // EXPECT_TRUE(utils::file::get_file_size(fsi.source_path, file_size)); -// // EXPECT_EQ(data.size(), file_size); -// } -// // static void test_rename_file(const std::string &from_file_path, // const std::string &to_file_path, // bool is_rename_supported) {