Skip to content

Commit 071ad37

Browse files
committed
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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,

0 commit comments

Comments
 (0)