Skip to content

Commit d38ea8c

Browse files
authored
[lldb] Fixed the test TestGdbRemoteAttachWait running on a remote target (#92413)
Install `_exe_to_attach` to a remote target if necessary.
1 parent e01ff82 commit d38ea8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/test/API/tools/lldb-server/attach-wait/TestGdbRemoteAttachWait.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ def _set_up_inferior(self):
1717
# Use a shim to ensure that the process is ready to be attached from
1818
# the get-go.
1919
self._exe_to_run = "shim"
20-
self._run_args = [self.getBuildArtifact(self._exe_to_attach)]
20+
self._exe_to_attach = lldbutil.install_to_target(
21+
self, self.getBuildArtifact(self._exe_to_attach)
22+
)
23+
self._run_args = [self._exe_to_attach]
2124
self.build(dictionary={"EXE": self._exe_to_run, "CXX_SOURCES": "shim.cpp"})
2225
else:
2326
self._exe_to_run = self._exe_to_attach

0 commit comments

Comments
 (0)