about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-23 16:27:41 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-23 20:51:29 +0800
commit5c1e2ec2be698f0e2521e82eab617d807445206d (patch)
treeb174cfd262826c92943bed515c816cc606bbec96
parent91bd54547582e4a0caf57c03c878f0c50636f9a6 (diff)
downloadrust-5c1e2ec2be698f0e2521e82eab617d807445206d.tar.gz
rust-5c1e2ec2be698f0e2521e82eab617d807445206d.zip
tests: cleanup `tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs`
- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
-rw-r--r--tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs b/tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs
index ce6644e6758..0566d2319df 100644
--- a/tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs
+++ b/tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs
@@ -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;
 
@@ -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" {