Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 071ad37

Browse files
committedJan 23, 2025
tests: use needs-threads instead of ignore-emscripten
1 parent 8a0310a commit 071ad37

29 files changed

+32
-34
lines changed
 

‎tests/ui/array-slice-vec/box-of-array-of-drop-1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//@ run-pass
22
//@ needs-unwind
3+
//@ needs-threads
4+
35
#![allow(overflowing_literals)]
46

57
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
68
// destructor.
79

8-
//@ ignore-emscripten no threads support
9-
1010
use std::thread;
1111
use std::sync::atomic::{AtomicUsize, Ordering};
1212

‎tests/ui/array-slice-vec/box-of-array-of-drop-2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//@ run-pass
22
//@ needs-unwind
3+
//@ needs-threads
4+
35
#![allow(overflowing_literals)]
46

57
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
68
// destructor.
79

8-
//@ ignore-emscripten no threads support
9-
1010
use std::thread;
1111
use std::sync::atomic::{AtomicUsize, Ordering};
1212

‎tests/ui/array-slice-vec/nested-vec-3.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//@ run-pass
22
//@ needs-unwind
3-
#![allow(overflowing_literals)]
3+
//@ needs-threads
44

5-
//@ ignore-emscripten no threads support
5+
#![allow(overflowing_literals)]
66

77
// Test that using the `vec!` macro nested within itself works when
88
// the contents implement Drop and we hit a panic in the middle of

‎tests/ui/array-slice-vec/slice-panic-1.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
4-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
54

65
// Test that if a slicing expr[..] fails, the correct cleanups happen.
76

‎tests/ui/array-slice-vec/slice-panic-2.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
4-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
54

65
// Test that if a slicing expr[..] fails, the correct cleanups happen.
76

‎tests/ui/box/unit/unwind-unique.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
use std::thread;
66

‎tests/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// It's unclear how likely such a bug is to recur, but it seems like a
2121
// scenario worth testing.
2222

23-
//@ ignore-emscripten no threads support
23+
//@ needs-threads
2424

2525
use std::thread;
2626

‎tests/ui/drop/drop-trait-enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![allow(dead_code)]
33
#![allow(unused_assignments)]
44
#![allow(unused_variables)]
5-
//@ ignore-emscripten no threads support
5+
//@ needs-threads
66
//@ needs-unwind
77

88
use std::thread;

‎tests/ui/drop/terminate-in-initializer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
// Issue #787
66
// Don't try to clean up uninitialized locals

‎tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
// rust-lang/rust#64655: with panic=unwind, a panic from a subroutine
66
// should still run destructors as it unwinds the stack. However,

‎tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
// rust-lang/rust#64655: with panic=unwind, a panic from a subroutine
66
// should still run destructors as it unwinds the stack. However,

‎tests/ui/issues/issue-25089.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
use std::thread;
66

‎tests/ui/issues/issue-26655.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
// Check that the destructors of simple enums are run on unwinding
66

‎tests/ui/issues/issue-29485.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![allow(unused_attributes)]
33
//@ aux-build:issue-29485.rs
44
//@ needs-unwind
5-
//@ ignore-emscripten no threads
5+
//@ needs-threads
66

77
#[feature(recover)]
88

‎tests/ui/issues/issue-30018-panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SIGTRAP injected by the drop-flag consistency checking.
66

77
//@ needs-unwind
8-
//@ ignore-emscripten no threads support
8+
//@ needs-threads
99

1010
struct Foo;
1111

‎tests/ui/issues/issue-38763.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-pass
2-
//@ ignore-emscripten
2+
//@ needs-threads
33

44
#[repr(C)]
55
pub struct Foo(i128);

‎tests/ui/numbers-arithmetic/int-abs-overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ compile-flags: -C overflow-checks=on
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44
//@ needs-unwind
55

66
use std::thread;

‎tests/ui/numbers-arithmetic/issue-8460.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
#![allow(unused_must_use)]
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44
//@ needs-unwind
55
#![feature(rustc_attrs)]
66

‎tests/ui/panics/panic-handler-chain-update-hook.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ needs-unwind
33
#![allow(stable_features)]
44

5-
//@ ignore-emscripten no threads support
5+
//@ needs-threads
66

77
#![feature(std_panic)]
88
#![feature(panic_update_hook)]

‎tests/ui/panics/panic-handler-flail-wildly.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![allow(stable_features)]
55
#![allow(unused_must_use)]
66

7-
//@ ignore-emscripten no threads support
7+
//@ needs-threads
88

99
#![feature(std_panic)]
1010

‎tests/ui/panics/panic-handler-set-twice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#![feature(std_panic)]
77

8-
//@ ignore-emscripten no threads support
8+
//@ needs-threads
99

1010
use std::sync::atomic::{AtomicUsize, Ordering};
1111
use std::panic;

‎tests/ui/panics/panic-in-dtor-drops-fields.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(dead_code)]
44
#![allow(non_upper_case_globals)]
55

6-
//@ ignore-emscripten no threads support
6+
//@ needs-threads
77

88
use std::thread;
99

‎tests/ui/panics/panic-recover-propagate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
use std::sync::atomic::{AtomicUsize, Ordering};
66
use std::panic;

‎tests/ui/process/process-sigpipe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
//@ ignore-vxworks no 'sh'
1717
//@ ignore-fuchsia no 'sh'
18-
//@ ignore-emscripten No threads
18+
//@ needs-threads
1919
//@ only-unix SIGPIPE is a unix feature
2020

2121
use std::process;

‎tests/ui/sepcomp/sepcomp-unwind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ needs-unwind
33
#![allow(dead_code)]
44
//@ compile-flags: -C codegen-units=3
5-
//@ ignore-emscripten no threads support
5+
//@ needs-threads
66

77
// Test unwinding through multiple compilation units.
88

‎tests/ui/structs-enums/unit-like-struct-drop-run.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ needs-unwind
3-
//@ ignore-emscripten no threads support
3+
//@ needs-threads
44

55
// Make sure the destructor is run for unit-like structs.
66

‎tests/ui/test-attrs/terse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ check-run-results
55
//@ exec-env:RUST_BACKTRACE=0
66
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
7-
//@ ignore-emscripten no threads support
7+
//@ needs-threads
88
//@ needs-unwind
99

1010
#[test]

‎tests/ui/test-attrs/test-thread-capture.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ check-run-results
55
//@ exec-env:RUST_BACKTRACE=0
66
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
7-
//@ ignore-emscripten no threads support
7+
//@ needs-threads
88
//@ needs-unwind
99

1010
#[test]

‎tests/ui/test-attrs/test-thread-nocapture.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ check-run-results
55
//@ exec-env:RUST_BACKTRACE=0
66
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
7-
//@ ignore-emscripten no threads support
7+
//@ needs-threads
88
//@ needs-unwind
99

1010
#[test]

0 commit comments

Comments
 (0)
Failed to load comments.