Update lldb output in LLVM 17.0

There have been a few changes that require to modify the regexes used in
lldb-std-vector-prettyprint and in python-embedded-interpreter.
This commit is contained in:
Tulio Magno Quites Machado Filho 2023-08-09 19:08:51 -03:00
commit ffe7fa64b2
2 changed files with 11 additions and 3 deletions

View file

@ -4,8 +4,16 @@ g++ -g test.cpp
lldb -b -o 'breakpoint set --file test.cpp --line 7' -o run -o 'p v' -- a.out | tee lldb.log
# Starting with LLVM 17.0, the expected output is:
# (std::vector<int>) size=1 {
# [0] = 2
# In LLVM 16.0, the expected output is:
# (std::vector<int, std::allocator<(int)> >) $0 = size=1 {
# [0] = 2
test `grep \
-e '(std::vector<int, std::allocator<\(int\)\?> >) $0 = size=1 {' \
-e '(std::vector<int\(, std::allocator<\(int\)\?> \)\?>) \($0 = \)\?size=1 {' \
-e '\[0\] = 2' \
lldb.log \
| wc -l` -eq 2

View file

@ -11,8 +11,8 @@ lldb -b -o 'breakpoint set --file test.cpp --line 8' \
-- a.out | tee lldb.log
test `grep \
-e '(int) $0 = 1' \
-e '(float) $1 = 1' \
-e '(int) \($0 = \)\?1' \
-e '(float) \($1 = \)\?1' \
lldb.log \
| wc -l` -eq 2