diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /unittests/Expression/ClangParserTest.cpp | |
parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) |
Notes
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 c776e48c9529..69ffb94c45c3 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(); } |