Skip to content

Commit f626175

Browse files
committed
tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx}
1 parent 5b6b440 commit f626175

File tree

156 files changed

+170
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+170
-200
lines changed

tests/ui/abi/homogenous-floats-target-feature-mixup.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
// without #[repr(simd)]
66

77
//@ run-pass
8-
//@ ignore-wasm32 no processes
9-
//@ ignore-sgx no processes
8+
//@ needs-subprocess
109

1110
#![feature(avx512_target_feature)]
1211

tests/ui/abi/segfault-no-out-of-stack.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
2-
//@ ignore-wasm32 can't run commands
3-
//@ ignore-sgx no processes
2+
//@ needs-subprocess
43
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
54

65
#![feature(rustc_private)]

tests/ui/abi/stack-probes-lto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@[aarch64] only-aarch64
44
//@[x32] only-x86
55
//@[x64] only-x86_64
6-
//@ ignore-sgx no processes
6+
//@ needs-subprocess
77
//@ ignore-musl FIXME #31506
88
//@ ignore-fuchsia no exception handler registered for segfault
99
//@ compile-flags: -C lto

tests/ui/abi/stack-probes.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
//@[aarch64] only-aarch64
44
//@[x32] only-x86
55
//@[x64] only-x86_64
6-
//@ ignore-emscripten no processes
7-
//@ ignore-sgx no processes
6+
//@ needs-subprocess
87
//@ ignore-fuchsia no exception handler registered for segfault
98
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
109
//@ ignore-ios Stack probes are enabled, but the SIGSEGV handler isn't

tests/ui/alloc-error/default-alloc-error-hook.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
2-
//@ ignore-wasm32 no processes
3-
//@ ignore-sgx no processes
2+
//@ needs-subprocess
43

54
use std::alloc::{Layout, handle_alloc_error};
65
use std::env;

tests/ui/array-slice-vec/bounds-check-no-overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:index out of bounds
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::mem::size_of;
66

tests/ui/array-slice-vec/dst-raw-slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//@ run-fail
44
//@ error-pattern:index out of bounds
5-
//@ ignore-emscripten no processes
5+
//@ needs-subprocess
66

77
#[allow(unconditional_panic)]
88
fn main() {

tests/ui/array-slice-vec/vec-overrun.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
let v: Vec<isize> = vec![10];

tests/ui/backtrace/backtrace.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//@ run-pass
22
//@ ignore-android FIXME #17520
3-
//@ ignore-wasm32 spawning processes is not supported
3+
//@ needs-subprocess
44
//@ ignore-openbsd no support for libbacktrace without filename
5-
//@ ignore-sgx no processes
65
//@ ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
76
//@ ignore-fuchsia Backtraces not symbolized
87
//@ compile-flags:-g

tests/ui/backtrace/std-backtrace.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//@ run-pass
22
//@ ignore-android FIXME #17520
3-
//@ ignore-wasm32 spawning processes is not supported
3+
//@ needs-subprocess
44
//@ ignore-openbsd no support for libbacktrace without filename
5-
//@ ignore-sgx no processes
65
//@ ignore-fuchsia Backtraces not symbolized
76
//@ compile-flags:-g
87
//@ compile-flags:-Cstrip=none

tests/ui/binop/binop-fail-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:quux
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn foo() -> ! {
66
panic!("quux");

tests/ui/binop/binop-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:quux
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn my_err(s: String) -> ! {
66
println!("{}", s);

tests/ui/borrowck/borrowck-local-borrow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:panic 1
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
let x = 2;

tests/ui/borrowck/issue-28934.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//@ run-fail
55
//@ error-pattern:explicit panic
6-
//@ ignore-emscripten no processes
6+
//@ needs-subprocess
77

88
struct Parser<'i: 't, 't>(&'i u8, &'t u8);
99

tests/ui/closures/diverging-closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:oops
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
let func = || -> ! {

tests/ui/command/command-current-dir.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ run-pass
22
//@ no-prefer-dynamic We move the binary around, so do not depend dynamically on libstd
3-
//@ ignore-wasm32 no processes
4-
//@ ignore-sgx no processes
3+
//@ needs-subprocess
54
//@ ignore-fuchsia Needs directory creation privilege
65

76
use std::env;

tests/ui/command/command-uid-gid.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//@ run-pass
22
//@ ignore-android
3-
//@ ignore-emscripten
4-
//@ ignore-sgx
53
//@ ignore-fuchsia no '/bin/sh', '/bin/ls'
4+
//@ needs-subprocess
65

76
#![feature(rustc_private)]
87

tests/ui/command/issue-10626.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
2-
//@ ignore-wasm32 no processes
3-
//@ ignore-sgx no processes
2+
//@ needs-subprocess
43

54
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
65
// that we don't die in a large ball of fire

tests/ui/consts/issue-29798.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:index out of bounds: the len is 5 but the index is 5
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
const fn test(x: usize) -> i32 {
66
[42;5][x]

tests/ui/coroutine/coroutine-resume-after-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-fail
22
//@ needs-unwind
33
//@ error-pattern:coroutine resumed after panicking
4-
//@ ignore-emscripten no processes
4+
//@ needs-subprocess
55

66
// Test that we get the correct message for resuming a panicked coroutine.
77

tests/ui/expr/if/expr-if-panic-fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:explicit panic
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn f() -> ! {
66
panic!()

tests/ui/expr/if/expr-if-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:explicit panic
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
let _x = if false {

tests/ui/expr/if/if-check-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:Number is odd
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn even(x: usize) -> bool {
66
if x < 2 {

tests/ui/expr/if/if-cond-bot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:quux
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn my_err(s: String) -> ! {
66
println!("{}", s);

tests/ui/extern/issue-18576.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:stop
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
// #18576
66
// Make sure that calling an extern function pointer in an unreachable

tests/ui/fn/expr-fn-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:explicit panic
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn f() -> ! {
66
panic!()

tests/ui/hashmap/hashmap-capacity-overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:capacity overflow
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::collections::hash_map::HashMap;
66
use std::mem::size_of;

tests/ui/imports/glob-use-std.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//@ run-fail
44
//@ error-pattern:panic works
5-
//@ ignore-emscripten no processes
5+
//@ needs-subprocess
66

77
use std::*;
88

tests/ui/intrinsics/panic-uninitialized-zeroed.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
// ignore-tidy-linelength
2+
//! This test checks panic emitted from `mem::{uninitialized,zeroed}`.
13
//@ run-pass
24
//@ revisions: default strict
35
//@ [strict]compile-flags: -Zstrict-init-checks
4-
// ignore-tidy-linelength
5-
//@ ignore-wasm32 spawning processes is not supported
6-
//@ ignore-sgx no processes
7-
//
8-
// This test checks panic emitted from `mem::{uninitialized,zeroed}`.
6+
//@ needs-subprocess
7+
98
#![allow(deprecated, invalid_value)]
109
#![feature(never_type)]
1110

tests/ui/issues/issue-12920.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:explicit panic
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
pub fn main() {
66
panic!();

tests/ui/issues/issue-13202.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:bad input
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
Some("foo").unwrap_or(panic!("bad input")).to_string();

tests/ui/issues/issue-20971.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//@ run-fail
44
//@ error-pattern:Hello, world!
5-
//@ ignore-emscripten no processes
5+
//@ needs-subprocess
66

77
pub trait Parser {
88
type Input;

tests/ui/issues/issue-23354-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:panic evaluated
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
#[allow(unused_variables)]
66
fn main() {

tests/ui/issues/issue-23354.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:panic evaluated
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
#[allow(unused_variables)]
66
fn main() {

tests/ui/issues/issue-2470-bounds-check-overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:index out of bounds
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::mem;
66

tests/ui/issues/issue-2761.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:custom message
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
assert!(false, "custom message");

tests/ui/issues/issue-3029.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:so long
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
#![allow(unreachable_code)]
66

tests/ui/issues/issue-30380.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//@ run-fail
55
//@ error-pattern:panicking destructors ftw!
6-
//@ ignore-emscripten no processes
6+
//@ needs-subprocess
77

88
struct Observer<'a>(&'a mut FilledOnDrop);
99

tests/ui/issues/issue-33770.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
2-
//@ ignore-wasm32 no processes
3-
//@ ignore-sgx no processes
2+
//@ needs-subprocess
43

54
use std::process::{Command, Stdio};
65
use std::env;

tests/ui/issues/issue-44216-add-system-time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:overflow
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::time::{Duration, SystemTime};
66

tests/ui/issues/issue-44216-sub-instant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:overflow
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::time::{Instant, Duration};
66

tests/ui/issues/issue-44216-sub-system-time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:overflow
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
use std::time::{Duration, SystemTime};
66

tests/ui/lifetimes/tail-expr-lock-poisoning.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ revisions: edition2021 edition2024
2-
//@ ignore-wasm no panic or subprocess support
2+
//@ ignore-wasm no panic support
3+
//@ needs-subprocess
34
//@ [edition2024] edition: 2024
45
//@ run-pass
56
//@ needs-unwind

tests/ui/loops/for-each-loop-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:moop
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
for _ in 0_usize..10_usize {

tests/ui/macros/assert-as-macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ error-pattern:assertion failed: 1 == 2
3-
//@ ignore-emscripten no processes
3+
//@ needs-subprocess
44

55
fn main() {
66
assert!(1 == 2);

tests/ui/macros/assert-eq-macro-msg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ error-pattern:assertion `left == right` failed: 1 + 1 definitely should be 3
33
//@ error-pattern: left: 2
44
//@ error-pattern: right: 3
5-
//@ ignore-emscripten no processes
5+
//@ needs-subprocess
66

77
fn main() {
88
assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");

0 commit comments

Comments
 (0)