winfsp unit tests and fixes
This commit is contained in:
		@@ -73,7 +73,6 @@ protected:
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mount_location = utils::path::combine(test_directory, {"mount"});
 | 
					    mount_location = utils::path::combine(test_directory, {"mount"});
 | 
				
			||||||
    utils::string::to_lower(mount_location);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ASSERT_TRUE(utils::file::directory(mount_location).create_directory());
 | 
					    ASSERT_TRUE(utils::file::directory(mount_location).create_directory());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -75,6 +75,8 @@ protected:
 | 
				
			|||||||
  static void SetUpTestCase() {
 | 
					  static void SetUpTestCase() {
 | 
				
			||||||
    current_directory = std::filesystem::current_path();
 | 
					    current_directory = std::filesystem::current_path();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    mount_location = utils::string::to_lower("U:");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const auto mount_s3 = [&]() {
 | 
					    const auto mount_s3 = [&]() {
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        auto test_directory = utils::path::combine(
 | 
					        auto test_directory = utils::path::combine(
 | 
				
			||||||
@@ -84,8 +86,6 @@ protected:
 | 
				
			|||||||
                app_config::get_provider_name(provider_type::s3),
 | 
					                app_config::get_provider_name(provider_type::s3),
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mount_location = "U:";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        auto cfg_directory = utils::path::combine(test_directory, {"cfg"});
 | 
					        auto cfg_directory = utils::path::combine(test_directory, {"cfg"});
 | 
				
			||||||
        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
					        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -124,8 +124,6 @@ protected:
 | 
				
			|||||||
                app_config::get_provider_name(provider_type::sia),
 | 
					                app_config::get_provider_name(provider_type::sia),
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mount_location = "U:";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        auto cfg_directory = utils::path::combine(test_directory, {"cfg"});
 | 
					        auto cfg_directory = utils::path::combine(test_directory, {"cfg"});
 | 
				
			||||||
        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
					        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -166,7 +164,7 @@ protected:
 | 
				
			|||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mount_location2 = mount_location;
 | 
					        mount_location2 = mount_location;
 | 
				
			||||||
        mount_location = "V:";
 | 
					        mount_location = utils::string::to_lower("V:");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        auto cfg_directory = utils::path::combine(test_directory, {"cfg2"});
 | 
					        auto cfg_directory = utils::path::combine(test_directory, {"cfg2"});
 | 
				
			||||||
        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
					        ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user