From 94994d372d014ce4c8758b9605d63fae651bd8aa Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:06:29 +0000 Subject: Vendor import of lldb trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/lldb/trunk@351319 --- unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unittests/ScriptInterpreter/Python/PythonTestSuite.cpp') diff --git a/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index 608f3ee45e5e..7bc8f64b4853 100644 --- a/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -7,10 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "Plugins/ScriptInterpreter/Python/lldb-python.h" #include "gtest/gtest.h" #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" +#include "Plugins/ScriptInterpreter/Python/lldb-python.h" +#include "lldb/Host/FileSystem.h" #include "lldb/Host/HostInfo.h" #include "PythonTestSuite.h" @@ -18,6 +19,7 @@ using namespace lldb_private; void PythonTestSuite::SetUp() { + FileSystem::Initialize(); HostInfoBase::Initialize(); // ScriptInterpreterPython::Initialize() depends on HostInfo being // initializedso it can compute the python directory etc. @@ -36,4 +38,6 @@ void PythonTestSuite::TearDown() { PyGILState_Release(m_gil_state); ScriptInterpreterPython::Terminate(); + HostInfoBase::Terminate(); + FileSystem::Terminate(); } -- cgit v1.2.3