[Lldb-commits] [lldb] ac42f76 - [lldb] Fixed the test TestDyldLaunchLinux (#92080)
via lldb-commits
lldb-commits at lists.llvm.org
Tue May 14 03:00:20 PDT 2024
Author: Dmitry Vasilyev
Date: 2024-05-14T14:00:16+04:00
New Revision: ac42f7689d741feda2badc438101e7952db048f3
URL: https://github.com/llvm/llvm-project/commit/ac42f7689d741feda2badc438101e7952db048f3
DIFF: https://github.com/llvm/llvm-project/commit/ac42f7689d741feda2badc438101e7952db048f3.diff
LOG: [lldb] Fixed the test TestDyldLaunchLinux (#92080)
Install a.out and libsignal_file.so to the remote target if necessary.
Added:
Modified:
lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py b/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
index 26360c20db1e2..c4eba023ea722 100644
--- a/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
+++ b/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
@@ -7,6 +7,7 @@
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
class TestLinux64LaunchingViaDynamicLoader(TestBase):
@@ -39,11 +40,16 @@ def test(self):
breakpoint_shared_library = target.BreakpointCreateBySourceRegex(
"get_signal_crash", lldb.SBFileSpec("signal_file.cpp")
)
+ inferior_exe_path = lldbutil.install_to_target(
+ self, self.getBuildArtifact("a.out")
+ )
+ lldbutil.install_to_target(self, self.getBuildArtifact("libsignal_file.so"))
+
launch_info = lldb.SBLaunchInfo(
[
"--library-path",
self.get_process_working_directory(),
- self.getBuildArtifact("a.out"),
+ inferior_exe_path,
]
)
launch_info.SetWorkingDirectory(self.get_process_working_directory())
More information about the lldb-commits
mailing list