Skip to content

Commit

Permalink
[lldb] [test] Attempt to fix gdb_remote_client A/vRun tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Sep 10, 2021
1 parent c362f61 commit 784281d
Showing 1 changed file with 5 additions and 2 deletions.
@@ -1,5 +1,6 @@
import lldb
import binascii
import os.path
from lldbsuite.test.lldbtest import *
from lldbsuite.test.decorators import *
from gdbclientutils import *
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 784281d

Please sign in to comment.