From 856079bcaa2303fe941c44d6787139e8929bd871 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 16 Dec 2019 21:47:13 +0100 Subject: [PATCH] Fix testing when lldb is not installed --- test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 4f393ad1797..79655b60b4f 100755 --- a/test.sh +++ b/test.sh @@ -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