check.sh 589 B

12345678910
  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/throw_and_catch/src/main.rs:36:5:\npanic\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\ndropped: "string"\ncaught\npanicked at test_crates/throw_and_catch/src/main.rs:46:5:\npanic\npanicked at test_crates/throw_and_catch/src/main.rs:25:9:\npanic on drop\n( *\d+:.*\n)+thread panicked while processing panic\. aborting\.' run.log