Skip to content

Commit d3d9bbd

Browse files
committed
[LLDB] Fix TestBase.generateSource for AArch64/Windows
This patch adds a minor fix in lldbtest.py TestBase.generateSource function. Generated Python source with directory paths was not being escaped properly. This fix makes sure we treat dir path as raw string.
1 parent d73684e commit d3d9bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/lldbtest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ def generateSource(self, source):
17751775
if self.hasDarwinFramework():
17761776
include_stmt = "'#include <%s>' % os.path.join('LLDB', header)"
17771777
else:
1778-
include_stmt = "'#include <%s>' % os.path.join('" + public_api_dir + "', header)"
1778+
include_stmt = "'#include <%s>' % os.path.join(r'" + public_api_dir + "', header)"
17791779
list = [eval(include_stmt) for header in public_headers if (
17801780
header.startswith("SB") and header.endswith(".h"))]
17811781
includes = '\n'.join(list)

0 commit comments

Comments
 (0)