diff options
Diffstat (limited to 'lldb/unittests/Expression/CppModuleConfigurationTest.cpp')
-rw-r--r-- | lldb/unittests/Expression/CppModuleConfigurationTest.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lldb/unittests/Expression/CppModuleConfigurationTest.cpp b/lldb/unittests/Expression/CppModuleConfigurationTest.cpp index 0babf766a3a..7ef66f60cfb 100644 --- a/lldb/unittests/Expression/CppModuleConfigurationTest.cpp +++ b/lldb/unittests/Expression/CppModuleConfigurationTest.cpp @@ -8,6 +8,7 @@ #include "Plugins/ExpressionParser/Clang/CppModuleConfiguration.h" #include "Plugins/ExpressionParser/Clang/ClangHost.h" +#include "TestingSupport/SubsystemRAII.h" #include "lldb/Host/FileSystem.h" #include "lldb/Host/HostInfo.h" @@ -18,16 +19,7 @@ using namespace lldb_private; namespace { struct CppModuleConfigurationTest : public testing::Test { - static void SetUpTestCase() { - // Getting the resource directory uses those subsystems, so we should - // initialize them. - FileSystem::Initialize(); - HostInfo::Initialize(); - } - static void TearDownTestCase() { - HostInfo::Terminate(); - FileSystem::Terminate(); - } + SubsystemRAII<FileSystem, HostInfo> subsystems; }; } // namespace |