[Lldb-commits] [lldb] [lldb] Fix the test TestGdbRemotePlatformFile (PR #91918)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Mon May 13 03:46:39 PDT 2024


================
@@ -108,6 +109,20 @@ def test_platform_file_wronly_fail(self):
         )
         self.expect_gdbremote_sequence()
 
+    def remote_install(self, path, filename="test"):
+        if lldb.remote_platform:
+            remote_path = lldbutil.append_to_process_working_directory(self, filename)
+            err = lldb.remote_platform.Install(
+                lldb.SBFileSpec(path, True), lldb.SBFileSpec(remote_path, False)
+            )
+            if err.Fail():
+                raise Exception(
+                    "remote_platform.Install('%s', '%s') failed: %s"
+                    % (path, remote_path, err)
+                )
+            path = remote_path
+        return path
----------------
slydiman wrote:

Sure. Please look at #91944.

https://github.com/llvm/llvm-project/pull/91918


More information about the lldb-commits mailing list