Skip to content

Commit

Permalink
[LLDB][SBSaveCoreOptions] Fix TestProcessSaveCore (llvm#99692)
Browse files Browse the repository at this point in the history
In llvm#98403 some of the tests were transitioned to the new
`SBProcess::SaveCore(SBSaveCoreOptions)` API, but were not detected in
testing. This patch addresses that.
  • Loading branch information
Jlalond authored and sgundapa committed Jul 23, 2024
1 parent 204a641 commit 7a90299
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 7a90299

Please sign in to comment.