lldb/tests/python-embedded-interpreter/runtest.sh
Petr Šabata 67046f993e RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/lldb#2dde36ca67a5249132a21f77da0b2b0ae26d4b27
2020-10-15 18:25:19 +02:00

12 lines
240 B
Bash
Executable File

#!/bin/bash
set -ex
g++ -g test.cpp
test `lldb -b -o 'breakpoint set --file test.cpp --line 7' -o run -o 'p v' -- a.out \
| grep \
-e '(std::vector<int, std::allocator<int> >) $0 = size=1 {' \
-e '\[0\] = 2' \
| wc -l` -eq 2