Zachary Turner c946d46283 gtest - Make a PythonTestSuite base class for setup / teardown.
This allows other potential unit test suites (of which one is
forthcoming in a subsequent patch) to re-use the same initialization
and teardown of the GIL.

llvm-svn: 252993
2015-11-13 01:24:35 +00:00

27 lines
568 B
C++

//===-- PythonTestSuite.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "gtest/gtest.h"
using namespace lldb_private;
class PythonTestSuite : public testing::Test
{
public:
void
SetUp() override;
void
TearDown() override;
private:
PyGILState_STATE m_gil_state;
};