summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-03-25 21:07:53 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-03-25 21:07:53 +0000
commite3959de26867d65410d4d5e1fc8c9c8f5bb2951a (patch)
tree7631c7f6ba5568780fbd15021a989ff57e4cc85b /lldb/unittests/ScriptInterpreter/Python
parent800fe977d0681aed9c1698354bcc00cc3cfa23db (diff)
downloadbcm5719-llvm-e3959de26867d65410d4d5e1fc8c9c8f5bb2951a.tar.gz
bcm5719-llvm-e3959de26867d65410d4d5e1fc8c9c8f5bb2951a.zip
[PythonTestSuite] Fix usage of InitializePrivate in PythonTestSuite
llvm-svn: 356950
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
-rw-r--r--lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
index 8c4e28114bc..26b8bafdd8d 100644
--- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
+++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
@@ -16,14 +16,19 @@
#include "PythonTestSuite.h"
using namespace lldb_private;
+class TestScriptInterpreterPython : public ScriptInterpreterPython {
+public:
+ using ScriptInterpreterPython::Initialize;
+ using ScriptInterpreterPython::InitializePrivate;
+};
void PythonTestSuite::SetUp() {
FileSystem::Initialize();
HostInfoBase::Initialize();
// ScriptInterpreterPython::Initialize() depends on HostInfo being
// initializedso it can compute the python directory etc.
- ScriptInterpreterPython::Initialize();
- ScriptInterpreterPython::InitializePrivate();
+ TestScriptInterpreterPython::Initialize();
+ TestScriptInterpreterPython::InitializePrivate();
// Although we don't care about concurrency for the purposes of running
// this test suite, Python requires the GIL to be locked even for
@@ -36,7 +41,7 @@ void PythonTestSuite::SetUp() {
void PythonTestSuite::TearDown() {
PyGILState_Release(m_gil_state);
- ScriptInterpreterPython::Terminate();
+ TestScriptInterpreterPython::Terminate();
HostInfoBase::Terminate();
FileSystem::Terminate();
}
OpenPOWER on IntegriCloud