Fix testing when lldb is not installed

This commit is contained in:
bjorn3 2019-12-16 21:47:13 +01:00 committed by GitHub
parent 3e50a831e5
commit 856079bcaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,9 @@ $RUSTC example/example.rs --crate-type lib
echo "[AOT] mini_core_hello_world"
$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g
./target/out/mini_core_hello_world abc bcd
if lldb -v; then
(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 10"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd
fi
lldb -v && \
(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 10"; sleep 1; echo "frame variable") \
| lldb -- ./target/out/mini_core_hello_world abc bcd
exit 1