From 7a9029952649ef6508a171d6a9f67a312cfea0a7 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 19 Jul 2024 15:49:22 -0700 Subject: [PATCH] [LLDB][SBSaveCoreOptions] Fix TestProcessSaveCore (#99692) In #98403 some of the tests were transitioned to the new `SBProcess::SaveCore(SBSaveCoreOptions)` API, but were not detected in testing. This patch addresses that. --- .../functionalities/process_save_core/TestProcessSaveCore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py index 07d06bdc116ec72..8573d157339277c 100644 --- a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py +++ b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py @@ -20,8 +20,8 @@ def test_cannot_save_core_unless_process_stopped(self): target = self.dbg.CreateTarget(exe) process = target.LaunchSimple(None, None, self.get_process_working_directory()) self.assertNotEqual(process.GetState(), lldb.eStateStopped) - options = SBSaveCoreOptions() - options.SetOutputFile(SBFileSpec(core)) + options = lldb.SBSaveCoreOptions() + options.SetOutputFile(lldb.SBFileSpec(core)) error = process.SaveCore(core) self.assertTrue(error.Fail())