[Lldb-commits] [lldb] [lldb] Fixed the test TestDyldLaunchLinux (PR #92080)
Dmitry Vasilyev via lldb-commits
lldb-commits at lists.llvm.org
Tue May 14 01:11:50 PDT 2024
https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/92080
Install a.out and libsignal_file.so to the remote target if necessary.
>From a5b005cbbfd25c9fb3e59f2cb0f98c2f6a3e405d Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: Tue, 14 May 2024 12:05:27 +0400
Subject: [PATCH] [lldb] Fixed the test TestDyldLaunchLinux
Install a.out and libsignal_file.so to the remote target if necessary.
---
.../dyld-launch-linux/TestDyldLaunchLinux.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py b/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
index 26360c20db1e2..016b60ec88111 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,14 @@ 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