mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08: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:
committed by
GitHub
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();
|
||||
|
||||
Reference in New Issue
Block a user