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 15:43:01 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-23 20:51:29 +0800
commitbfc553eb5301ebdc1364cb8f0acbba3d9f9f9da2 (patch)
tree17f0621ccc68ae9d50e1f20a5c7955cefad75bd2
parentf9addadd716d946ad40fb728a5bb74ab0c1d4da7 (diff)
downloadrust-bfc553eb5301ebdc1364cb8f0acbba3d9f9f9da2.tar.gz
rust-bfc553eb5301ebdc1364cb8f0acbba3d9f9f9da2.zip
tests: cleanup `tests/ui/command/command-exec.rs`
- Remove already stable feature gate and `#![allow(stable_features)]`.
- Replace `ignore-windows` with `only-unix`.
- Replace `ignore-*` with `needs-subprocess`.
-rw-r--r--tests/ui/command/command-exec.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/ui/command/command-exec.rs b/tests/ui/command/command-exec.rs
index d2545b0b472..77336377e88 100644
--- a/tests/ui/command/command-exec.rs
+++ b/tests/ui/command/command-exec.rs
@@ -1,13 +1,9 @@
 //@ run-pass
 
-#![allow(stable_features)]
-//@ ignore-windows - this is a unix-specific test
-//@ ignore-wasm32 no processes
-//@ ignore-sgx no processes
+//@ only-unix (this is a unix-specific test)
+//@ needs-subprocess
 //@ ignore-fuchsia no execvp syscall provided
 
-#![feature(process_exec)]
-
 use std::env;
 use std::os::unix::process::CommandExt;
 use std::process::Command;