Skip to content

Commit f32c6b2

Browse files
authored
[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 <[email protected]>
1 parent df52521 commit f32c6b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/unittests/Process/ProcessEventDataTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "Plugins/Platform/MacOSX/PlatformMacOSX.h"
1010
#include "Plugins/Platform/MacOSX/PlatformRemoteMacOSX.h"
11+
#include "TestingSupport/TestUtilities.h"
1112
#include "lldb/Core/Debugger.h"
1213
#include "lldb/Host/FileSystem.h"
1314
#include "lldb/Host/HostInfo.h"
@@ -29,6 +30,8 @@ class ProcessEventDataTest : public ::testing::Test {
2930
FileSystem::Initialize();
3031
HostInfo::Initialize();
3132
PlatformMacOSX::Initialize();
33+
std::call_once(TestUtilities::g_debugger_initialize_flag,
34+
[]() { Debugger::Initialize(nullptr); });
3235
}
3336
void TearDown() override {
3437
PlatformMacOSX::Terminate();

0 commit comments

Comments
 (0)