[Lldb-commits] [lldb] f32c6b2 - [lldb/Test] Fix oversight in ProcessEventDataTest::SetUp (NFC) (#83895)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 4 11:42:07 PST 2024
Author: Med Ismail Bennani
Date: 2024-03-04T11:42:04-08:00
New Revision: f32c6b28b84130dc77e0e69d6d3b692aec933280
URL: https://github.com/llvm/llvm-project/commit/f32c6b28b84130dc77e0e69d6d3b692aec933280
DIFF: https://github.com/llvm/llvm-project/commit/f32c6b28b84130dc77e0e69d6d3b692aec933280.diff
LOG: [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 at bennani.ma>
Added:
Modified:
lldb/unittests/Process/ProcessEventDataTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Process/ProcessEventDataTest.cpp b/lldb/unittests/Process/ProcessEventDataTest.cpp
index dd159496cd881d..e793c6eae20a29 100644
--- a/lldb/unittests/Process/ProcessEventDataTest.cpp
+++ b/lldb/unittests/Process/ProcessEventDataTest.cpp
@@ -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 @@ class ProcessEventDataTest : public ::testing::Test {
FileSystem::Initialize();
HostInfo::Initialize();
PlatformMacOSX::Initialize();
+ std::call_once(TestUtilities::g_debugger_initialize_flag,
+ []() { Debugger::Initialize(nullptr); });
}
void TearDown() override {
PlatformMacOSX::Terminate();
More information about the lldb-commits
mailing list