[Lldb-commits] [lldb] 784281d - [lldb] [test] Attempt to fix gdb_remote_client A/vRun tests on Windows

Michał Górny via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 10 07:29:38 PDT 2021


Author: Michał Górny
Date: 2021-09-10T16:27:29+02:00
New Revision: 784281d3164862cb5c7f8f20de80f3d52cc13307

URL: https://github.com/llvm/llvm-project/commit/784281d3164862cb5c7f8f20de80f3d52cc13307
DIFF: https://github.com/llvm/llvm-project/commit/784281d3164862cb5c7f8f20de80f3d52cc13307.diff

LOG: [lldb] [test] Attempt to fix gdb_remote_client A/vRun tests on Windows

Added: 
    

Modified: 
    lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py b/lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
index 049ea6f42057..a58de7f19ec6 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
@@ -1,5 +1,6 @@
 import lldb
 import binascii
+import os.path
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test.decorators import *
 from gdbclientutils import *
@@ -181,7 +182,8 @@ def qLaunchSuccess(self):
         self.server.responder = MyResponder()
 
         target = self.createTarget("a.yaml")
-        exe_path = self.getBuildArtifact("a")
+        # NB: apparently GDB packets are using "/" on Windows too
+        exe_path = self.getBuildArtifact("a").replace(os.path.sep, '/')
         exe_hex = binascii.b2a_hex(exe_path.encode()).decode()
         process = self.connect(target)
         lldbutil.expect_state_changes(self, self.dbg.GetListener(), process,
@@ -236,7 +238,8 @@ def A(self, packet):
         self.server.responder = MyResponder()
 
         target = self.createTarget("a.yaml")
-        exe_path = self.getBuildArtifact("a")
+        # NB: apparently GDB packets are using "/" on Windows too
+        exe_path = self.getBuildArtifact("a").replace(os.path.sep, '/')
         exe_hex = binascii.b2a_hex(exe_path.encode()).decode()
         process = self.connect(target)
         lldbutil.expect_state_changes(self, self.dbg.GetListener(), process,


        


More information about the lldb-commits mailing list