diff options
Diffstat (limited to 'unittests/Expression/ClangParserTest.cpp')
| -rw-r--r-- | unittests/Expression/ClangParserTest.cpp | 13 | 
1 files changed, 10 insertions, 3 deletions
diff --git a/unittests/Expression/ClangParserTest.cpp b/unittests/Expression/ClangParserTest.cpp index c776e48c95292..69ffb94c45c3f 100644 --- a/unittests/Expression/ClangParserTest.cpp +++ b/unittests/Expression/ClangParserTest.cpp @@ -9,6 +9,7 @@  #include "Plugins/ExpressionParser/Clang/ClangHost.h"  #include "TestingSupport/TestUtilities.h" +#include "lldb/Host/FileSystem.h"  #include "lldb/Host/HostInfo.h"  #include "lldb/Utility/FileSpec.h"  #include "lldb/lldb-defines.h" @@ -18,8 +19,14 @@ using namespace lldb_private;  namespace {  struct ClangHostTest : public testing::Test { -  static void SetUpTestCase() { HostInfo::Initialize(); } -  static void TearDownTestCase() { HostInfo::Terminate(); } +  static void SetUpTestCase() { +    FileSystem::Initialize(); +    HostInfo::Initialize(); +  } +  static void TearDownTestCase() { +    HostInfo::Terminate(); +    FileSystem::Terminate(); +  }  };  } // namespace @@ -27,7 +34,7 @@ struct ClangHostTest : public testing::Test {  static std::string ComputeClangDir(std::string lldb_shlib_path,                                     bool verify = false) {    FileSpec clang_dir; -  FileSpec lldb_shlib_spec(lldb_shlib_path, false); +  FileSpec lldb_shlib_spec(lldb_shlib_path);    ComputeClangDirectory(lldb_shlib_spec, clang_dir, verify);    return clang_dir.GetPath();  }  | 
