summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
diff options
context:
space:
mode:
authorcmtice <cmtice@google.com>2025-09-03 08:57:34 -0700
committerGitHub <noreply@github.com>2025-09-03 08:57:34 -0700
commit527c8ff11e4b05e3502a46a5ad52bb7f0da5ed2a (patch)
tree829e520147ba786178300b9c60378150cf73d864 /lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
parentbad2036c6ef13e4b44fdea527c3f6ea49033358d (diff)
[lit] Update internal shell lexer to handle LLDB persistent vars. (#156125)
LLDB allows creation of 'persistent' variables, with names that start with '$'. The lit internal shell was escaping the '$', making it '\\$', in some CHECK lines, which causes an LLDB test, TestExprWithSideEffectOnConvenienceVar, to fail when using the lit internal shell. Further explanation of the failing LLDB test: LLDB convenience variables start with '$'. The test passes several quoted commands that use and update convenience variables to lldb as arguments to be run in batch mode. The tool that packages up the complete string and passes it to the lit internal shell lexer for lexing inserts a backslash in front of the '$' before passing the string in for lexing. The lexer was passing this change along, causing the tests to fail. This PR fixes the issue by having the lexer remove the newly added escape on the '$'.
Diffstat (limited to 'lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions