[Lldb-commits] [lldb] c462048 - [lldb][NFC] Use SubsystemRAII in XcodeSDKModuleTests
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 22 04:41:20 PDT 2021
Author: Raphael Isemann
Date: 2021-06-22T13:41:01+02:00
New Revision: c462048cc4c088f6d12e6a55c1ceb54fd731a2b3
URL: https://github.com/llvm/llvm-project/commit/c462048cc4c088f6d12e6a55c1ceb54fd731a2b3
DIFF: https://github.com/llvm/llvm-project/commit/c462048cc4c088f6d12e6a55c1ceb54fd731a2b3.diff
LOG: [lldb][NFC] Use SubsystemRAII in XcodeSDKModuleTests
Added:
Modified:
lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp b/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
index 287143a0e338b..9fb4602a41e3d 100644
--- a/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
+++ b/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
@@ -21,14 +21,7 @@ using namespace lldb_private;
#ifdef __APPLE__
namespace {
class XcodeSDKModuleTests : public testing::Test {
- void SetUp() override {
- HostInfoBase::Initialize();
- PlatformMacOSX::Initialize();
- }
- void TearDown() override {
- PlatformMacOSX::Terminate();
- HostInfoBase::Terminate();
- }
+ SubsystemRAII<HostInfoBase, PlatformMacOSX> subsystems;
};
} // namespace
More information about the lldb-commits
mailing list