diff options
| author | aissata <aimaiga2@gmail.com> | 2024-07-30 08:16:47 +0200 |
|---|---|---|
| committer | aissata <aimaiga2@gmail.com> | 2024-07-30 08:16:47 +0200 |
| commit | dadf3d2a970999ee0d7a0f97045acc70919d751e (patch) | |
| tree | c0a23b80b008c9351be0afb7d82887975008317c /tests/ui/backtrace | |
| parent | 8c3a94a1c79c67924558a4adf7fb6d98f5f0f741 (diff) | |
| download | rust-dadf3d2a970999ee0d7a0f97045acc70919d751e.tar.gz rust-dadf3d2a970999ee0d7a0f97045acc70919d751e.zip | |
the output in stderr expects panic-unwind
Diffstat (limited to 'tests/ui/backtrace')
| -rw-r--r-- | tests/ui/backtrace/synchronized-panic-handler.rs | 1 | ||||
| -rw-r--r-- | tests/ui/backtrace/synchronized-panic-handler.run.stderr | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/backtrace/synchronized-panic-handler.rs b/tests/ui/backtrace/synchronized-panic-handler.rs index 00eb249da1d..29431ae3c45 100644 --- a/tests/ui/backtrace/synchronized-panic-handler.rs +++ b/tests/ui/backtrace/synchronized-panic-handler.rs @@ -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"; diff --git a/tests/ui/backtrace/synchronized-panic-handler.run.stderr b/tests/ui/backtrace/synchronized-panic-handler.run.stderr index b7c815a94c8..8a06d00ea59 100644 --- a/tests/ui/backtrace/synchronized-panic-handler.run.stderr +++ b/tests/ui/backtrace/synchronized-panic-handler.run.stderr @@ -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 |
