tests: use needs-threads
instead of ignore-emscripten
· rust-lang/rust@071ad37 (original) (raw)
29 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | +//@ needs-threads | |
4 | + | |
3 | 5 | #![allow(overflowing_literals)] |
4 | 6 | |
5 | 7 | // Test that we cleanup a fixed size Box<[D; k]> properly when D has a |
6 | 8 | // destructor. |
7 | 9 | |
8 | -//@ ignore-emscripten no threads support | |
9 | - | |
10 | 10 | use std::thread; |
11 | 11 | use std::sync::atomic::{AtomicUsize, Ordering}; |
12 | 12 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | +//@ needs-threads | |
4 | + | |
3 | 5 | #![allow(overflowing_literals)] |
4 | 6 | |
5 | 7 | // Test that we cleanup dynamic sized Box<[D]> properly when D has a |
6 | 8 | // destructor. |
7 | 9 | |
8 | -//@ ignore-emscripten no threads support | |
9 | - | |
10 | 10 | use std::thread; |
11 | 11 | use std::sync::atomic::{AtomicUsize, Ordering}; |
12 | 12 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -#![allow(overflowing_literals)] | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | -//@ ignore-emscripten no threads support | |
5 | +#![allow(overflowing_literals)] | |
6 | 6 | |
7 | 7 | // Test that using the `vec!` macro nested within itself works when |
8 | 8 | // the contents implement Drop and we hit a panic in the middle of |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | - | |
4 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
5 | 4 | |
6 | 5 | // Test that if a slicing expr[..] fails, the correct cleanups happen. |
7 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | - | |
4 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
5 | 4 | |
6 | 5 | // Test that if a slicing expr[..] fails, the correct cleanups happen. |
7 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | use std::thread; |
6 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -20,7 +20,7 @@ | ||
20 | 20 | // It's unclear how likely such a bug is to recur, but it seems like a |
21 | 21 | // scenario worth testing. |
22 | 22 | |
23 | -//@ ignore-emscripten no threads support | |
23 | +//@ needs-threads | |
24 | 24 | |
25 | 25 | use std::thread; |
26 | 26 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ | ||
2 | 2 | #![allow(dead_code)] |
3 | 3 | #![allow(unused_assignments)] |
4 | 4 | #![allow(unused_variables)] |
5 | -//@ ignore-emscripten no threads support | |
5 | +//@ needs-threads | |
6 | 6 | //@ needs-unwind |
7 | 7 | |
8 | 8 | use std::thread; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | // Issue #787 |
6 | 6 | // Don't try to clean up uninitialized locals |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine |
6 | 6 | // should still run destructors as it unwinds the stack. However, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine |
6 | 6 | // should still run destructors as it unwinds the stack. However, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | use std::thread; |
6 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | // Check that the destructors of simple enums are run on unwinding |
6 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ | ||
2 | 2 | #![allow(unused_attributes)] |
3 | 3 | //@ aux-build:issue-29485.rs |
4 | 4 | //@ needs-unwind |
5 | -//@ ignore-emscripten no threads | |
5 | +//@ needs-threads | |
6 | 6 | |
7 | 7 | #[feature(recover)] |
8 | 8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -5,7 +5,7 @@ | ||
5 | 5 | // SIGTRAP injected by the drop-flag consistency checking. |
6 | 6 | |
7 | 7 | //@ needs-unwind |
8 | -//@ ignore-emscripten no threads support | |
8 | +//@ needs-threads | |
9 | 9 | |
10 | 10 | struct Foo; |
11 | 11 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
1 | 1 | //@ run-pass |
2 | -//@ ignore-emscripten | |
2 | +//@ needs-threads | |
3 | 3 | |
4 | 4 | #[repr(C)] |
5 | 5 | pub struct Foo(i128); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ compile-flags: -C overflow-checks=on |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | //@ needs-unwind |
5 | 5 | |
6 | 6 | use std::thread; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | #![allow(unused_must_use)] |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | //@ needs-unwind |
5 | 5 | #![feature(rustc_attrs)] |
6 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ | ||
2 | 2 | //@ needs-unwind |
3 | 3 | #![allow(stable_features)] |
4 | 4 | |
5 | -//@ ignore-emscripten no threads support | |
5 | +//@ needs-threads | |
6 | 6 | |
7 | 7 | #![feature(std_panic)] |
8 | 8 | #![feature(panic_update_hook)] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
4 | 4 | #![allow(stable_features)] |
5 | 5 | #![allow(unused_must_use)] |
6 | 6 | |
7 | -//@ ignore-emscripten no threads support | |
7 | +//@ needs-threads | |
8 | 8 | |
9 | 9 | #![feature(std_panic)] |
10 | 10 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -5,7 +5,7 @@ | ||
5 | 5 | |
6 | 6 | #![feature(std_panic)] |
7 | 7 | |
8 | -//@ ignore-emscripten no threads support | |
8 | +//@ needs-threads | |
9 | 9 | |
10 | 10 | use std::sync::atomic::{AtomicUsize, Ordering}; |
11 | 11 | use std::panic; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,7 +3,7 @@ | ||
3 | 3 | #![allow(dead_code)] |
4 | 4 | #![allow(non_upper_case_globals)] |
5 | 5 | |
6 | -//@ ignore-emscripten no threads support | |
6 | +//@ needs-threads | |
7 | 7 | |
8 | 8 | use std::thread; |
9 | 9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | use std::sync::atomic::{AtomicUsize, Ordering}; |
6 | 6 | use std::panic; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -15,7 +15,7 @@ | ||
15 | 15 | |
16 | 16 | //@ ignore-vxworks no 'sh' |
17 | 17 | //@ ignore-fuchsia no 'sh' |
18 | -//@ ignore-emscripten No threads | |
18 | +//@ needs-threads | |
19 | 19 | //@ only-unix SIGPIPE is a unix feature |
20 | 20 | |
21 | 21 | use std::process; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ | ||
2 | 2 | //@ needs-unwind |
3 | 3 | #![allow(dead_code)] |
4 | 4 | //@ compile-flags: -C codegen-units=3 |
5 | -//@ ignore-emscripten no threads support | |
5 | +//@ needs-threads | |
6 | 6 | |
7 | 7 | // Test unwinding through multiple compilation units. |
8 | 8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | 1 | //@ run-pass |
2 | 2 | //@ needs-unwind |
3 | -//@ ignore-emscripten no threads support | |
3 | +//@ needs-threads | |
4 | 4 | |
5 | 5 | // Make sure the destructor is run for unit-like structs. |
6 | 6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
4 | 4 | //@ check-run-results |
5 | 5 | //@ exec-env:RUST_BACKTRACE=0 |
6 | 6 | //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in TIME" |
7 | -//@ ignore-emscripten no threads support | |
7 | +//@ needs-threads | |
8 | 8 | //@ needs-unwind |
9 | 9 | |
10 | 10 | #[test] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
4 | 4 | //@ check-run-results |
5 | 5 | //@ exec-env:RUST_BACKTRACE=0 |
6 | 6 | //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in TIME" |
7 | -//@ ignore-emscripten no threads support | |
7 | +//@ needs-threads | |
8 | 8 | //@ needs-unwind |
9 | 9 | |
10 | 10 | #[test] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
4 | 4 | //@ check-run-results |
5 | 5 | //@ exec-env:RUST_BACKTRACE=0 |
6 | 6 | //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in TIME" |
7 | -//@ ignore-emscripten no threads support | |
7 | +//@ needs-threads | |
8 | 8 | //@ needs-unwind |
9 | 9 | |
10 | 10 | #[test] |