Skip to content

Commit

Permalink
tests: cleanup `tests/ui/panic-runtime/abort-link-to-unwinding-crates…
Browse files Browse the repository at this point in the history
….rs`

- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
  • Loading branch information
jieyouxu committed Jan 23, 2025
1 parent 91bd545 commit 5c1e2ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
//@ run-pass
#![allow(unused_variables)]
//@ compile-flags:-C panic=abort
//@ aux-build:exit-success-if-unwind.rs
//@ no-prefer-dynamic
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
//@ needs-subprocess

extern crate exit_success_if_unwind;

Expand All @@ -13,7 +11,7 @@ use std::process::Command;

fn main() {
let mut args = env::args_os();
let me = args.next().unwrap();
let _ = args.next().unwrap();

if let Some(s) = args.next() {
if &*s == "foo" {
Expand Down

0 comments on commit 5c1e2ec

Please sign in to comment.