Skip to content

Conversation

@Jlalond
Copy link
Contributor

@Jlalond Jlalond commented Jul 19, 2024

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.

@Jlalond Jlalond requested a review from JDevlieghere as a code owner July 19, 2024 19:43
@llvmbot llvmbot added the lldb label Jul 19, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 19, 2024

@llvm/pr-subscribers-lldb

Author: Jacob Lalonde (Jlalond)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/99692.diff

1 Files Affected:

  • (modified) lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py (+2-2)
diff --git a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py
index 07d06bdc116ec..8573d15733927 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())
 

@Jlalond
Copy link
Contributor Author

Jlalond commented Jul 19, 2024

@luporl FYI this fixes the test

@Jlalond
Copy link
Contributor Author

Jlalond commented Jul 19, 2024

@labath Would you mind looking at this? Simple fix that got missed because it's a Window's only test

@Jlalond Jlalond merged commit fada922 into llvm:main Jul 19, 2024
@luporl
Copy link
Contributor

luporl commented Jul 22, 2024

@Jlalond Thanks for the fix.

yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
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.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60251264
@Jlalond Jlalond deleted the test-process-save-core-test-fix branch August 6, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants