Skip to content

Commit ac42f76

Browse files
authored
[lldb] Fixed the test TestDyldLaunchLinux (#92080)
Install a.out and libsignal_file.so to the remote target if necessary.
1 parent d7ef34b commit ac42f76

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from lldbsuite.test.decorators import *
99
from lldbsuite.test.lldbtest import *
10+
from lldbsuite.test import lldbutil
1011

1112

1213
class TestLinux64LaunchingViaDynamicLoader(TestBase):
@@ -39,11 +40,16 @@ def test(self):
3940
breakpoint_shared_library = target.BreakpointCreateBySourceRegex(
4041
"get_signal_crash", lldb.SBFileSpec("signal_file.cpp")
4142
)
43+
inferior_exe_path = lldbutil.install_to_target(
44+
self, self.getBuildArtifact("a.out")
45+
)
46+
lldbutil.install_to_target(self, self.getBuildArtifact("libsignal_file.so"))
47+
4248
launch_info = lldb.SBLaunchInfo(
4349
[
4450
"--library-path",
4551
self.get_process_working_directory(),
46-
self.getBuildArtifact("a.out"),
52+
inferior_exe_path,
4753
]
4854
)
4955
launch_info.SetWorkingDirectory(self.get_process_working_directory())

0 commit comments

Comments
 (0)