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