aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorMuhammad Omair Javaid <omair.javaid@linaro.org>2022-06-07 17:47:50 +0400
committerMuhammad Omair Javaid <omair.javaid@linaro.org>2022-06-07 19:25:35 +0400
commitd3d9bbd104368850d5e362ce8c5982f468272ae8 (patch)
treeae7bc12730f75cb880991578c39afe431525567c /lldb/packages/Python/lldbsuite/test/lldbtest.py
parentd73684e22334f1411abb02e4fb16c18f723a96a2 (diff)
downloadllvm-d3d9bbd104368850d5e362ce8c5982f468272ae8.zip
llvm-d3d9bbd104368850d5e362ce8c5982f468272ae8.tar.gz
llvm-d3d9bbd104368850d5e362ce8c5982f468272ae8.tar.bz2
[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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index e1c8373..5c536f4 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1775,7 +1775,7 @@ class TestBase(Base):
if self.hasDarwinFramework():
include_stmt = "'#include <%s>' % os.path.join('LLDB', header)"
else:
- include_stmt = "'#include <%s>' % os.path.join('" + public_api_dir + "', header)"
+ include_stmt = "'#include <%s>' % os.path.join(r'" + public_api_dir + "', header)"
list = [eval(include_stmt) for header in public_headers if (
header.startswith("SB") and header.endswith(".h"))]
includes = '\n'.join(list)