check.sh 367 B

123456789
  1. #!/usr/bin/env bash
  2. set -o pipefail
  3. trap "rm -f run.log" EXIT
  4. ${CARGO:-cargo} run --release $BUILD_STD 2>&1 | tee run.log
  5. if [ $? -ne 134 ]; then
  6. echo process is not aborted
  7. exit 1
  8. fi
  9. grep -Pz 'panicked at test_crates/catch_std_exception/src/main.rs:5:9:\nexplicit panic\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace' run.log