summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Host/MainLoopTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Host/MainLoopTest.cpp')
-rw-r--r--lldb/unittests/Host/MainLoopTest.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/unittests/Host/MainLoopTest.cpp b/lldb/unittests/Host/MainLoopTest.cpp
index 240c6fcd534..da509b940a1 100644
--- a/lldb/unittests/Host/MainLoopTest.cpp
+++ b/lldb/unittests/Host/MainLoopTest.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "lldb/Host/MainLoop.h"
+#include "TestingSupport/SubsystemRAII.h"
#include "lldb/Host/ConnectionFileDescriptor.h"
#include "lldb/Host/PseudoTerminal.h"
#include "lldb/Host/common/TCPSocket.h"
@@ -19,11 +20,7 @@ using namespace lldb_private;
namespace {
class MainLoopTest : public testing::Test {
public:
- static void SetUpTestCase() {
- ASSERT_THAT_ERROR(Socket::Initialize(), llvm::Succeeded());
- }
-
- static void TearDownTestCase() { Socket::Terminate(); }
+ SubsystemRAII<Socket> subsystems;
void SetUp() override {
bool child_processes_inherit = false;
OpenPOWER on IntegriCloud