winfsp unit tests and fixes

This commit is contained in:
Scott E. Graves 2024-11-08 12:32:00 -06:00
parent 0b4befd823
commit 7a96a8cbf3
2 changed files with 3 additions and 6 deletions

View File

@ -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());

View File

@ -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());