mirror of https://github.com/rust-lang/rust.git
Fix testing when lldb is not installed
This commit is contained in:
parent
3e50a831e5
commit
856079bcaa
6
test.sh
6
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue