From f773c1d3760300606f2e17285eb71e9f9f44c91f Mon Sep 17 00:00:00 2001 From: Tpt Date: Sun, 1 Jan 2023 21:38:50 +0100 Subject: [PATCH] Makes MockFileSystem::GetAbsolutePath work on Windows --- env/mock_env.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/env/mock_env.cc b/env/mock_env.cc index c232af61e..9d6438a2c 100644 --- a/env/mock_env.cc +++ b/env/mock_env.cc @@ -601,11 +601,15 @@ IOStatus MockFileSystem::GetAbsolutePath(const std::string& db_path, std::string* output_path, IODebugContext* /*dbg*/) { *output_path = NormalizeMockPath(db_path); +#ifdef OS_WIN + return IOStatus::OK(); // TODO +#else if (output_path->at(0) != '/') { return IOStatus::NotSupported("GetAbsolutePath"); } else { return IOStatus::OK(); } +#endif } std::string MockFileSystem::NormalizeMockPath(const std::string& path) {