aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Lalonde <jalalonde@fb.com>2024-07-19 15:49:22 -0700
committerGitHub <noreply@github.com>2024-07-19 15:49:22 -0700
commitfada9227325b3eaa0bdc09a486f29a7f08b7b3fb (patch)
tree30facd80d462d18d41d489a28cd71c649dbe496d
parent56ffbd97fda16008d02180a460211829354f1094 (diff)
downloadllvm-fada9227325b3eaa0bdc09a486f29a7f08b7b3fb.zip
llvm-fada9227325b3eaa0bdc09a486f29a7f08b7b3fb.tar.gz
llvm-fada9227325b3eaa0bdc09a486f29a7f08b7b3fb.tar.bz2
[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.
-rw-r--r--lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py4
1 files 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 07d06bd..8573d15 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 @@ class ProcessSaveCoreTestCase(TestBase):
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())