Skip to content

[lldb] Fixed the test TestExec #92082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

slydiman
Copy link
Contributor

Install secondprog to the remote target if necessary.

Install `secondprog` to the remote target if necessary.
@slydiman slydiman requested a review from JDevlieghere as a code owner May 14, 2024 08:27
@slydiman slydiman requested a review from DavidSpickett May 14, 2024 08:27
@llvmbot llvmbot added the lldb label May 14, 2024
@slydiman slydiman requested a review from labath May 14, 2024 08:28
@llvmbot
Copy link
Member

llvmbot commented May 14, 2024

@llvm/pr-subscribers-lldb

Author: Dmitry Vasilyev (slydiman)

Changes

Install secondprog to the remote target if necessary.


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

1 Files Affected:

  • (modified) lldb/test/API/functionalities/exec/TestExec.py (+4)
diff --git a/lldb/test/API/functionalities/exec/TestExec.py b/lldb/test/API/functionalities/exec/TestExec.py
index aab1f5c9455f5..968b879c4cd44 100644
--- a/lldb/test/API/functionalities/exec/TestExec.py
+++ b/lldb/test/API/functionalities/exec/TestExec.py
@@ -45,6 +45,8 @@ def do_test(self, skip_exec):
         # Create the target
         target = self.dbg.CreateTarget(exe)
 
+        lldbutil.install_to_target(self, secondprog)
+
         # Create any breakpoints we need
         breakpoint1 = target.BreakpointCreateBySourceRegex(
             "Set breakpoint 1 here", lldb.SBFileSpec("main.c", False)
@@ -143,6 +145,8 @@ def test_correct_thread_plan_state_before_exec(self):
         exe = self.getBuildArtifact("a.out")
         target = self.dbg.CreateTarget(exe)
 
+        lldbutil.install_to_target(self, self.getBuildArtifact("secondprog"))
+
         (target, process, thread, breakpoint1) = lldbutil.run_to_source_breakpoint(
             self, "Set breakpoint 1 here", lldb.SBFileSpec("main.c", False)
         )

@slydiman slydiman merged commit f658d84 into llvm:main May 14, 2024
6 checks passed
@slydiman slydiman deleted the fix-lldb-test-TestExec branch July 25, 2024 21:31
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.

3 participants