mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 17:56:50 +00:00
[lldb/Test] Fix oversight in ProcessEventDataTest::SetUp (NFC) (#83895)
This patch addresses an oversight in `ProcessEventDataTest::SetUp` unittest to ensure the Debugger is initialized properly. Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
This commit is contained in:
parent
df52521655
commit
f32c6b28b8
@ -8,6 +8,7 @@
|
||||
|
||||
#include "Plugins/Platform/MacOSX/PlatformMacOSX.h"
|
||||
#include "Plugins/Platform/MacOSX/PlatformRemoteMacOSX.h"
|
||||
#include "TestingSupport/TestUtilities.h"
|
||||
#include "lldb/Core/Debugger.h"
|
||||
#include "lldb/Host/FileSystem.h"
|
||||
#include "lldb/Host/HostInfo.h"
|
||||
@ -29,6 +30,8 @@ public:
|
||||
FileSystem::Initialize();
|
||||
HostInfo::Initialize();
|
||||
PlatformMacOSX::Initialize();
|
||||
std::call_once(TestUtilities::g_debugger_initialize_flag,
|
||||
[]() { Debugger::Initialize(nullptr); });
|
||||
}
|
||||
void TearDown() override {
|
||||
PlatformMacOSX::Terminate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user