check.sh 269 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 'fatal runtime error: Rust cannot catch foreign exceptions' run.log