From 7a96a8cbf39133a55e566a03847639e4b9c40be5 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 8 Nov 2024 12:32:00 -0600 Subject: [PATCH] winfsp unit tests and fixes --- .../repertory_test/include/fixtures/fuse_fixture.hpp | 1 - .../repertory_test/include/fixtures/winfsp_fixture.hpp | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index 5b295328..9ef17f05 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -73,7 +73,6 @@ protected: }); mount_location = utils::path::combine(test_directory, {"mount"}); - utils::string::to_lower(mount_location); ASSERT_TRUE(utils::file::directory(mount_location).create_directory()); diff --git a/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp b/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp index 9eace8be..1343bcb7 100644 --- a/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp @@ -75,6 +75,8 @@ protected: static void SetUpTestCase() { current_directory = std::filesystem::current_path(); + mount_location = utils::string::to_lower("U:"); + const auto mount_s3 = [&]() { { auto test_directory = utils::path::combine( @@ -84,8 +86,6 @@ protected: app_config::get_provider_name(provider_type::s3), }); - mount_location = "U:"; - auto cfg_directory = utils::path::combine(test_directory, {"cfg"}); ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory()); @@ -124,8 +124,6 @@ protected: app_config::get_provider_name(provider_type::sia), }); - mount_location = "U:"; - auto cfg_directory = utils::path::combine(test_directory, {"cfg"}); ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory()); @@ -166,7 +164,7 @@ protected: }); mount_location2 = mount_location; - mount_location = "V:"; + mount_location = utils::string::to_lower("V:"); auto cfg_directory = utils::path::combine(test_directory, {"cfg2"}); ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());