Author: Dmitry Vasilyev
Date: 2024-05-14T14:02:31+04:00
New Revision: f658d84e01bcdd49e27dc9ef80e1a6cc5f9417fe

URL: 
https://github.com/llvm/llvm-project/commit/f658d84e01bcdd49e27dc9ef80e1a6cc5f9417fe
DIFF: 
https://github.com/llvm/llvm-project/commit/f658d84e01bcdd49e27dc9ef80e1a6cc5f9417fe.diff

LOG: [lldb] Fixed the test TestExec (#92082)

Install `secondprog` to the remote target if necessary.

Added: 
    

Modified: 
    lldb/test/API/functionalities/exec/TestExec.py

Removed: 
    


################################################################################
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)
         )


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to