From 81d5273b06e41b420e4c332710a3314383c558ae 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 a4e0c43f1..819143218 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) {