Skip to content

Commit

Permalink
Auto merge of rust-lang#136476 - jieyouxu:panic-panic-panic, r=<try>
Browse files Browse the repository at this point in the history
Remove redundant `//@ ignore-{wasm,wasm32,emscripten}` in tests

Follow-up to rust-lang#135926.

When `//@ needs-{unwind,subprocess}` are the suitable capability guards.

Resolves rust-lang#135923.

r? `@ghost`

try-job: test-various
  • Loading branch information
bors committed Feb 3, 2025
2 parents 7daf4cf + f944790 commit ac83dfa
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 19 deletions.
3 changes: 1 addition & 2 deletions tests/ui/lifetimes/tail-expr-lock-poisoning.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//@ revisions: edition2021 edition2024
//@ ignore-wasm no panic support
//@ needs-subprocess
//@ [edition2024] edition: 2024
//@ run-pass
//@ needs-unwind
//@ needs-subprocess

use std::sync::Mutex;

Expand Down
3 changes: 1 addition & 2 deletions tests/ui/panics/issue-47429-short-backtraces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
//@ ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
//@ ignore-android FIXME #17520
//@ ignore-openbsd no support for libbacktrace without filename
//@ ignore-wasm no panic support
//@ ignore-emscripten no panic support
//@ ignore-fuchsia Backtraces not symbolized
//@ needs-unwind
//@ needs-subprocess

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/panics/issue-47429-short-backtraces.run.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

thread 'main' panicked at $DIR/issue-47429-short-backtraces.rs:26:5:
thread 'main' panicked at $DIR/issue-47429-short-backtraces.rs:25:5:
explicit panic
stack backtrace:
0: std::panicking::begin_panic
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/panics/runtime-switch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
//@ ignore-android FIXME #17520
//@ ignore-openbsd no support for libbacktrace without filename
//@ ignore-wasm no backtrace support
//@ ignore-emscripten no panic support
//@ ignore-fuchsia Backtrace not symbolized
//@ needs-unwind
//@ needs-subprocess

#![feature(panic_backtrace_config)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/panics/short-ice-remove-middle-frames-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=1
//@ needs-unwind
//@ needs-subprocess
//@ ignore-android FIXME #17520
//@ ignore-openbsd no support for libbacktrace without filename
//@ ignore-emscripten no panic
//@ ignore-sgx Backtraces not symbolized
//@ ignore-fuchsia Backtraces not symbolized
//@ ignore-msvc the `__rust_{begin,end}_short_backtrace` symbols aren't reliable.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/panics/short-ice-remove-middle-frames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=1
//@ needs-unwind
//@ needs-subprocess
//@ ignore-android FIXME #17520
//@ ignore-openbsd no support for libbacktrace without filename
//@ ignore-emscripten no panic
//@ ignore-sgx Backtraces not symbolized
//@ ignore-fuchsia Backtraces not symbolized
//@ ignore-msvc the `__rust_{begin,end}_short_backtrace` symbols aren't reliable.
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/test-attrs/test-panic-abort-disabled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
//@ no-prefer-dynamic
//@ compile-flags: --test -Cpanic=abort -Zpanic-abort-tests=no
//@ run-flags: --test-threads=1

//@ needs-unwind
//@ ignore-wasm no panic support
//@ ignore-emscripten no panic support
//@ needs-subprocess

#![cfg(test)]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/test-attrs/test-panic-abort-nocapture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"

//@ ignore-android #120567
//@ ignore-wasm no panic support
//@ ignore-emscripten no panic support
//@ needs-subprocess

#![cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/test-attrs/test-panic-abort-nocapture.run.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

thread 'main' panicked at $DIR/test-panic-abort-nocapture.rs:34:5:
thread 'main' panicked at $DIR/test-panic-abort-nocapture.rs:32:5:
assertion `left == right` failed
left: 2
right: 4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at $DIR/test-panic-abort-nocapture.rs:28:5:
thread 'main' panicked at $DIR/test-panic-abort-nocapture.rs:26:5:
assertion `left == right` failed
left: 2
right: 4
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/test-attrs/test-panic-abort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"

//@ ignore-android #120567
//@ ignore-wasm no panic support
//@ ignore-emscripten no panic support
//@ needs-subprocess

#![cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/test-attrs/test-panic-abort.run.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ testing123
---- it_fails stderr ----
testing321

thread 'main' panicked at $DIR/test-panic-abort.rs:39:5:
thread 'main' panicked at $DIR/test-panic-abort.rs:37:5:
assertion `left == right` failed
left: 2
right: 5
Expand Down

0 comments on commit ac83dfa

Please sign in to comment.