the output in stderr expects panic-unwind

This commit is contained in:
aissata 2024-07-30 08:16:47 +02:00
parent 8c3a94a1c7
commit dadf3d2a97
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
//@ edition:2021
//@ exec-env:RUST_BACKTRACE=0
//@ needs-threads
//@ needs-unwind
use std::thread;
const PANIC_MESSAGE: &str = "oops oh no woe is me";

View File

@ -1,5 +1,5 @@
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:10:5:
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:11:5:
oops oh no woe is me
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:10:5:
thread '<unnamed>' panicked at $DIR/synchronized-panic-handler.rs:11:5:
oops oh no woe is me