Adding needs-unwind for test using panic::catch_unwind

This commit is contained in:
Andrew Pollack 2022-09-21 00:54:23 +00:00
parent cd8cc91045
commit 324c10e72f
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
// run-fail
// exec-env:RUST_BACKTRACE=0
// check-run-results
// needs-unwind uses catch_unwind
use std::sync::Once;
use std::panic;

View file

@ -1,3 +1,3 @@
thread 'main' panicked at 'Here Once instance is poisoned.', $DIR/issue-87707.rs:13:24
thread 'main' panicked at 'Here Once instance is poisoned.', $DIR/issue-87707.rs:14:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'Once instance has previously been poisoned', $DIR/issue-87707.rs:15:7
thread 'main' panicked at 'Once instance has previously been poisoned', $DIR/issue-87707.rs:16:7