From ee91c25b04b7acdf6f9052f69fd2df02ab2e138c Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 11 Feb 2016 12:34:41 +0100 Subject: [PATCH] Ignore tests that use threads on emscripten --- src/test/run-pass/atomic-print.rs | 2 ++ src/test/run-pass/box-of-array-of-drop-1.rs | 2 ++ src/test/run-pass/box-of-array-of-drop-2.rs | 2 ++ src/test/run-pass/cci_capture_clause.rs | 1 + src/test/run-pass/child-outlives-parent.rs | 1 + .../run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs | 1 + src/test/run-pass/clone-with-exterior.rs | 1 + src/test/run-pass/comm.rs | 2 ++ src/test/run-pass/core-run-destroy.rs | 1 + src/test/run-pass/drop-flag-skip-sanity-check.rs | 1 + src/test/run-pass/extern-call-deep2.rs | 2 ++ src/test/run-pass/extern-call-scrub.rs | 2 ++ src/test/run-pass/fds-are-cloexec.rs | 1 + src/test/run-pass/foreign-call-no-runtime.rs | 2 ++ src/test/run-pass/init-large-type.rs | 1 + src/test/run-pass/int-abs-overflow.rs | 1 + src/test/run-pass/intrinsic-move-val-cleanups.rs | 2 ++ src/test/run-pass/issue-13494.rs | 2 ++ src/test/run-pass/issue-16560.rs | 1 + src/test/run-pass/issue-16671.rs | 2 ++ src/test/run-pass/issue-21291.rs | 2 ++ src/test/run-pass/issue-22864-2.rs | 2 ++ src/test/run-pass/issue-25089.rs | 2 ++ src/test/run-pass/issue-26655.rs | 2 ++ src/test/run-pass/issue-29488.rs | 2 ++ src/test/run-pass/issue-30018-panic.rs | 2 ++ src/test/run-pass/issue-4446.rs | 2 ++ src/test/run-pass/issue-4448.rs | 1 + src/test/run-pass/issue-8460.rs | 2 ++ src/test/run-pass/issue-8827.rs | 2 ++ src/test/run-pass/issue-9396.rs | 2 ++ src/test/run-pass/ivec-tag.rs | 1 + src/test/run-pass/logging-only-prints-once.rs | 1 + src/test/run-pass/macro-with-braces-in-expr-position.rs | 2 ++ src/test/run-pass/moves-based-on-type-capture-clause.rs | 2 ++ src/test/run-pass/nested-vec-3.rs | 2 ++ src/test/run-pass/no-landing-pads.rs | 2 +- src/test/run-pass/panic-handler-flail-wildly.rs | 2 ++ src/test/run-pass/panic-handler-set-twice.rs | 2 ++ src/test/run-pass/panic-in-dtor-drops-fields.rs | 1 + src/test/run-pass/panic-recover-propagate.rs | 2 ++ src/test/run-pass/process-sigpipe.rs | 2 ++ src/test/run-pass/rust-log-filter.rs | 2 +- src/test/run-pass/send-resource.rs | 1 + src/test/run-pass/sendfn-spawn-with-fn-arg.rs | 2 ++ src/test/run-pass/sepcomp-unwind.rs | 1 + src/test/run-pass/slice-panic-1.rs | 2 ++ src/test/run-pass/slice-panic-2.rs | 2 ++ src/test/run-pass/spawn-fn.rs | 2 ++ src/test/run-pass/spawn-types.rs | 1 + src/test/run-pass/spawn.rs | 2 ++ src/test/run-pass/spawn2.rs | 2 ++ src/test/run-pass/spawning-with-debug.rs | 1 + src/test/run-pass/task-comm-0.rs | 2 ++ src/test/run-pass/task-comm-1.rs | 2 ++ src/test/run-pass/task-comm-10.rs | 2 ++ src/test/run-pass/task-comm-11.rs | 1 + src/test/run-pass/task-comm-12.rs | 2 ++ src/test/run-pass/task-comm-13.rs | 2 ++ src/test/run-pass/task-comm-14.rs | 2 ++ src/test/run-pass/task-comm-15.rs | 1 + src/test/run-pass/task-comm-17.rs | 1 + src/test/run-pass/task-comm-3.rs | 1 + src/test/run-pass/task-comm-7.rs | 1 + src/test/run-pass/task-comm-9.rs | 2 ++ src/test/run-pass/task-life-0.rs | 1 + src/test/run-pass/task-spawn-move-and-copy.rs | 1 + src/test/run-pass/task-stderr.rs | 2 ++ src/test/run-pass/tcp-stress.rs | 1 + src/test/run-pass/terminate-in-initializer.rs | 1 + src/test/run-pass/threads.rs | 2 ++ src/test/run-pass/tls-dtors-are-run-in-a-static-binary.rs | 1 + src/test/run-pass/tls-init-on-init.rs | 2 ++ src/test/run-pass/trait-bounds-in-arc.rs | 1 + src/test/run-pass/unique-send-2.rs | 1 + src/test/run-pass/unit-like-struct-drop-run.rs | 2 ++ src/test/run-pass/unwind-resource.rs | 2 ++ src/test/run-pass/unwind-unique.rs | 1 + src/test/run-pass/vector-sort-panic-safe.rs | 1 + src/test/run-pass/weak-lang-item.rs | 1 + src/test/run-pass/yield.rs | 2 ++ src/test/run-pass/yield1.rs | 2 ++ 82 files changed, 129 insertions(+), 2 deletions(-) diff --git a/src/test/run-pass/atomic-print.rs b/src/test/run-pass/atomic-print.rs index aa1ef2025a0..ebc9f801931 100644 --- a/src/test/run-pass/atomic-print.rs +++ b/src/test/run-pass/atomic-print.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::{env, fmt, process, sync, thread}; struct SlowFmt(u32); diff --git a/src/test/run-pass/box-of-array-of-drop-1.rs b/src/test/run-pass/box-of-array-of-drop-1.rs index e889d74c7cc..a63a232e1b5 100644 --- a/src/test/run-pass/box-of-array-of-drop-1.rs +++ b/src/test/run-pass/box-of-array-of-drop-1.rs @@ -11,6 +11,8 @@ // Test that we cleanup a fixed size Box<[D; k]> properly when D has a // destructor. +// ignore-emscripten no threads support + #![feature(const_fn)] use std::thread; diff --git a/src/test/run-pass/box-of-array-of-drop-2.rs b/src/test/run-pass/box-of-array-of-drop-2.rs index f108ef4f5d2..ca179429172 100644 --- a/src/test/run-pass/box-of-array-of-drop-2.rs +++ b/src/test/run-pass/box-of-array-of-drop-2.rs @@ -11,6 +11,8 @@ // Test that we cleanup dynamic sized Box<[D]> properly when D has a // destructor. +// ignore-emscripten no threads support + #![feature(const_fn)] use std::thread; diff --git a/src/test/run-pass/cci_capture_clause.rs b/src/test/run-pass/cci_capture_clause.rs index 80b75af6e44..5019455c2a7 100644 --- a/src/test/run-pass/cci_capture_clause.rs +++ b/src/test/run-pass/cci_capture_clause.rs @@ -14,6 +14,7 @@ // that use capture clauses. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support extern crate cci_capture_clause; diff --git a/src/test/run-pass/child-outlives-parent.rs b/src/test/run-pass/child-outlives-parent.rs index 7da1416602f..e45f7c2bba6 100644 --- a/src/test/run-pass/child-outlives-parent.rs +++ b/src/test/run-pass/child-outlives-parent.rs @@ -11,6 +11,7 @@ // Reported as issue #126, child leaks the string. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support #![feature(std_misc)] diff --git a/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs b/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs index 344ea63c7c7..25d3eb3bbe2 100644 --- a/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs +++ b/src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs @@ -24,6 +24,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 #![allow(unknown_features)] #![feature(box_syntax)] diff --git a/src/test/run-pass/clone-with-exterior.rs b/src/test/run-pass/clone-with-exterior.rs index 5a7b1c83dfd..384fb92954d 100644 --- a/src/test/run-pass/clone-with-exterior.rs +++ b/src/test/run-pass/clone-with-exterior.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![allow(unknown_features)] #![feature(box_syntax, std_misc)] diff --git a/src/test/run-pass/comm.rs b/src/test/run-pass/comm.rs index 72f623ccfde..d7cb8bc991a 100644 --- a/src/test/run-pass/comm.rs +++ b/src/test/run-pass/comm.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/core-run-destroy.rs b/src/test/run-pass/core-run-destroy.rs index d6b6d673ca5..ffcc1891c57 100644 --- a/src/test/run-pass/core-run-destroy.rs +++ b/src/test/run-pass/core-run-destroy.rs @@ -10,6 +10,7 @@ // ignore-pretty // compile-flags:--test +// ignore-emscripten // NB: These tests kill child processes. Valgrind sees these children as leaking // memory, which makes for some *confusing* logs. That's why these are here diff --git a/src/test/run-pass/drop-flag-skip-sanity-check.rs b/src/test/run-pass/drop-flag-skip-sanity-check.rs index 4a6c8ce70dc..07a10c8d454 100644 --- a/src/test/run-pass/drop-flag-skip-sanity-check.rs +++ b/src/test/run-pass/drop-flag-skip-sanity-check.rs @@ -9,6 +9,7 @@ // except according to those terms. // compile-flags: -Z force-dropflag-checks=off +// ignore-emscripten no threads support // Quick-and-dirty test to ensure -Z force-dropflag-checks=off works as // expected. Note that the inlined drop-flag is slated for removal diff --git a/src/test/run-pass/extern-call-deep2.rs b/src/test/run-pass/extern-call-deep2.rs index 252086ad014..1a0191b7053 100644 --- a/src/test/run-pass/extern-call-deep2.rs +++ b/src/test/run-pass/extern-call-deep2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(libc)] extern crate libc; diff --git a/src/test/run-pass/extern-call-scrub.rs b/src/test/run-pass/extern-call-scrub.rs index 9a39b1773e5..1beb6d3519a 100644 --- a/src/test/run-pass/extern-call-scrub.rs +++ b/src/test/run-pass/extern-call-scrub.rs @@ -12,6 +12,8 @@ // make sure the stack pointers are maintained properly in both // directions +// ignore-emscripten no threads support + #![feature(libc, std_misc)] extern crate libc; diff --git a/src/test/run-pass/fds-are-cloexec.rs b/src/test/run-pass/fds-are-cloexec.rs index 3c7d2861c87..c2916ccd75b 100644 --- a/src/test/run-pass/fds-are-cloexec.rs +++ b/src/test/run-pass/fds-are-cloexec.rs @@ -10,6 +10,7 @@ // ignore-windows // ignore-android +// ignore-emscripten #![feature(libc)] diff --git a/src/test/run-pass/foreign-call-no-runtime.rs b/src/test/run-pass/foreign-call-no-runtime.rs index f4792c21216..ca118899798 100644 --- a/src/test/run-pass/foreign-call-no-runtime.rs +++ b/src/test/run-pass/foreign-call-no-runtime.rs @@ -9,6 +9,8 @@ // except according to those terms. // ignore-aarch64 +// ignore-emscripten no threads support + #![feature(libc)] extern crate libc; diff --git a/src/test/run-pass/init-large-type.rs b/src/test/run-pass/init-large-type.rs index dafa8ee1033..2ff024a693a 100644 --- a/src/test/run-pass/init-large-type.rs +++ b/src/test/run-pass/init-large-type.rs @@ -13,6 +13,7 @@ // optimisation. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support #![feature(intrinsics, std_misc)] diff --git a/src/test/run-pass/int-abs-overflow.rs b/src/test/run-pass/int-abs-overflow.rs index 3f50a7d6c02..e17e3a16d68 100644 --- a/src/test/run-pass/int-abs-overflow.rs +++ b/src/test/run-pass/int-abs-overflow.rs @@ -9,6 +9,7 @@ // except according to those terms. // compile-flags: -Z force-overflow-checks=on +// ignore-emscripten no threads support use std::thread; diff --git a/src/test/run-pass/intrinsic-move-val-cleanups.rs b/src/test/run-pass/intrinsic-move-val-cleanups.rs index 9fd4f2133b7..8f22579423f 100644 --- a/src/test/run-pass/intrinsic-move-val-cleanups.rs +++ b/src/test/run-pass/intrinsic-move-val-cleanups.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // This test is checking that the move_val_init intrinsic is // respecting cleanups for both of its argument expressions. // diff --git a/src/test/run-pass/issue-13494.rs b/src/test/run-pass/issue-13494.rs index e94368925ab..316190b54eb 100644 --- a/src/test/run-pass/issue-13494.rs +++ b/src/test/run-pass/issue-13494.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // This test may not always fail, but it can be flaky if the race it used to // expose is still present. diff --git a/src/test/run-pass/issue-16560.rs b/src/test/run-pass/issue-16560.rs index a9f7d86f95e..596f0d20155 100644 --- a/src/test/run-pass/issue-16560.rs +++ b/src/test/run-pass/issue-16560.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![feature(unboxed_closures)] diff --git a/src/test/run-pass/issue-16671.rs b/src/test/run-pass/issue-16671.rs index 1ebe3a7f068..2be04551cb9 100644 --- a/src/test/run-pass/issue-16671.rs +++ b/src/test/run-pass/issue-16671.rs @@ -11,6 +11,8 @@ // DON'T REENABLE THIS UNLESS YOU'VE ACTUALLY FIXED THE UNDERLYING ISSUE // ignore-android seems to block forever +// ignore-emscripten no threads support + #![forbid(warnings)] // Pretty printing tests complain about `use std::predule::*` diff --git a/src/test/run-pass/issue-21291.rs b/src/test/run-pass/issue-21291.rs index ec095d4895f..6b45a4d0a52 100644 --- a/src/test/run-pass/issue-21291.rs +++ b/src/test/run-pass/issue-21291.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // Regression test for unwrapping the result of `join`, issue #21291 use std::thread; diff --git a/src/test/run-pass/issue-22864-2.rs b/src/test/run-pass/issue-22864-2.rs index da78578329b..f9360af011b 100644 --- a/src/test/run-pass/issue-22864-2.rs +++ b/src/test/run-pass/issue-22864-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + pub fn main() { let f = || || 0; std::thread::spawn(f()); diff --git a/src/test/run-pass/issue-25089.rs b/src/test/run-pass/issue-25089.rs index b619d1dd448..e707023530b 100644 --- a/src/test/run-pass/issue-25089.rs +++ b/src/test/run-pass/issue-25089.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; struct Foo(i32); diff --git a/src/test/run-pass/issue-26655.rs b/src/test/run-pass/issue-26655.rs index bdd3a80d74c..402460e7253 100644 --- a/src/test/run-pass/issue-26655.rs +++ b/src/test/run-pass/issue-26655.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(const_fn)] // Check that the destructors of simple enums are run on unwinding diff --git a/src/test/run-pass/issue-29488.rs b/src/test/run-pass/issue-29488.rs index eee0f663df2..17a6e9bd6b2 100644 --- a/src/test/run-pass/issue-29488.rs +++ b/src/test/run-pass/issue-29488.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; struct Foo; diff --git a/src/test/run-pass/issue-30018-panic.rs b/src/test/run-pass/issue-30018-panic.rs index da4d5f19d4a..e39ffb87425 100644 --- a/src/test/run-pass/issue-30018-panic.rs +++ b/src/test/run-pass/issue-30018-panic.rs @@ -13,6 +13,8 @@ // spawned thread to isolate the expected error result from the // SIGTRAP injected by the drop-flag consistency checking. +// ignore-emscripten no threads support + struct Foo; impl Drop for Foo { diff --git a/src/test/run-pass/issue-4446.rs b/src/test/run-pass/issue-4446.rs index 9292a9c608e..5eec800d588 100644 --- a/src/test/run-pass/issue-4446.rs +++ b/src/test/run-pass/issue-4446.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::sync::mpsc::channel; use std::thread; diff --git a/src/test/run-pass/issue-4448.rs b/src/test/run-pass/issue-4448.rs index eb411ff4417..6f0356b5bfb 100644 --- a/src/test/run-pass/issue-4448.rs +++ b/src/test/run-pass/issue-4448.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support use std::sync::mpsc::channel; use std::thread; diff --git a/src/test/run-pass/issue-8460.rs b/src/test/run-pass/issue-8460.rs index 4ebc43163ed..8ec9f8aff8e 100644 --- a/src/test/run-pass/issue-8460.rs +++ b/src/test/run-pass/issue-8460.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(zero_one)] use std::num::Zero; diff --git a/src/test/run-pass/issue-8827.rs b/src/test/run-pass/issue-8827.rs index 280311af6fb..6e01131cfca 100644 --- a/src/test/run-pass/issue-8827.rs +++ b/src/test/run-pass/issue-8827.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/issue-9396.rs b/src/test/run-pass/issue-9396.rs index ed67630bcac..5af2006f081 100644 --- a/src/test/run-pass/issue-9396.rs +++ b/src/test/run-pass/issue-9396.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::sync::mpsc::{TryRecvError, channel}; use std::thread; diff --git a/src/test/run-pass/ivec-tag.rs b/src/test/run-pass/ivec-tag.rs index 3f0daf2610c..e7498f7c174 100644 --- a/src/test/run-pass/ivec-tag.rs +++ b/src/test/run-pass/ivec-tag.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support #![feature(std_misc)] diff --git a/src/test/run-pass/logging-only-prints-once.rs b/src/test/run-pass/logging-only-prints-once.rs index 1b1cdcb1102..11ab43fd087 100644 --- a/src/test/run-pass/logging-only-prints-once.rs +++ b/src/test/run-pass/logging-only-prints-once.rs @@ -9,6 +9,7 @@ // except according to those terms. // ignore-windows +// ignore-emscripten no threads support // exec-env:RUST_LOG=debug use std::cell::Cell; diff --git a/src/test/run-pass/macro-with-braces-in-expr-position.rs b/src/test/run-pass/macro-with-braces-in-expr-position.rs index 326d1cafe6c..c3fad3a19f9 100644 --- a/src/test/run-pass/macro-with-braces-in-expr-position.rs +++ b/src/test/run-pass/macro-with-braces-in-expr-position.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; macro_rules! expr { ($e: expr) => { $e } } diff --git a/src/test/run-pass/moves-based-on-type-capture-clause.rs b/src/test/run-pass/moves-based-on-type-capture-clause.rs index c7ef9776367..d3c028070fd 100644 --- a/src/test/run-pass/moves-based-on-type-capture-clause.rs +++ b/src/test/run-pass/moves-based-on-type-capture-clause.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/nested-vec-3.rs b/src/test/run-pass/nested-vec-3.rs index 89ac6261583..458b6c16e62 100644 --- a/src/test/run-pass/nested-vec-3.rs +++ b/src/test/run-pass/nested-vec-3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // Test that using the `vec!` macro nested within itself works when // the contents implement Drop and we hit a panic in the middle of // construction. diff --git a/src/test/run-pass/no-landing-pads.rs b/src/test/run-pass/no-landing-pads.rs index d90e7ef5e47..8445bccf134 100644 --- a/src/test/run-pass/no-landing-pads.rs +++ b/src/test/run-pass/no-landing-pads.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z no-landing-pads - +// ignore-emscripten no threads support use std::thread; diff --git a/src/test/run-pass/panic-handler-flail-wildly.rs b/src/test/run-pass/panic-handler-flail-wildly.rs index 783a44beaf3..39ea987f71b 100644 --- a/src/test/run-pass/panic-handler-flail-wildly.rs +++ b/src/test/run-pass/panic-handler-flail-wildly.rs @@ -9,6 +9,8 @@ // except according to those terms. #![feature(panic_handler, std_panic)] +// ignore-emscripten no threads support + use std::panic; use std::thread; diff --git a/src/test/run-pass/panic-handler-set-twice.rs b/src/test/run-pass/panic-handler-set-twice.rs index edf65e8e2aa..ed9a02c1d3e 100644 --- a/src/test/run-pass/panic-handler-set-twice.rs +++ b/src/test/run-pass/panic-handler-set-twice.rs @@ -9,6 +9,8 @@ // except according to those terms. #![feature(panic_handler, const_fn, std_panic)] +// ignore-emscripten no threads support + use std::sync::atomic::{AtomicUsize, Ordering}; use std::panic; use std::thread; diff --git a/src/test/run-pass/panic-in-dtor-drops-fields.rs b/src/test/run-pass/panic-in-dtor-drops-fields.rs index f84a823d3db..c5f92fbd55a 100644 --- a/src/test/run-pass/panic-in-dtor-drops-fields.rs +++ b/src/test/run-pass/panic-in-dtor-drops-fields.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support use std::thread; diff --git a/src/test/run-pass/panic-recover-propagate.rs b/src/test/run-pass/panic-recover-propagate.rs index c0b2f25d99c..d420ef99863 100644 --- a/src/test/run-pass/panic-recover-propagate.rs +++ b/src/test/run-pass/panic-recover-propagate.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_panic, recover, panic_propagate, panic_handler, const_fn)] use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/src/test/run-pass/process-sigpipe.rs b/src/test/run-pass/process-sigpipe.rs index 5bff4fa080a..ebc7f134610 100644 --- a/src/test/run-pass/process-sigpipe.rs +++ b/src/test/run-pass/process-sigpipe.rs @@ -18,6 +18,8 @@ // (instead of running forever), and that it does not print an error // message about a broken pipe. +// ignore-emscripten no threads support + use std::process; use std::thread; diff --git a/src/test/run-pass/rust-log-filter.rs b/src/test/run-pass/rust-log-filter.rs index 59179206104..306d24e3177 100644 --- a/src/test/run-pass/rust-log-filter.rs +++ b/src/test/run-pass/rust-log-filter.rs @@ -9,7 +9,7 @@ // except according to those terms. // exec-env:RUST_LOG=rust_log_filter/foo - +// ignore-emscripten no threads support #![allow(unknown_features)] #![feature(box_syntax, std_misc, rustc_private)] diff --git a/src/test/run-pass/send-resource.rs b/src/test/run-pass/send-resource.rs index 66878d98c84..7dd1c3c5978 100644 --- a/src/test/run-pass/send-resource.rs +++ b/src/test/run-pass/send-resource.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support #![feature(std_misc)] diff --git a/src/test/run-pass/sendfn-spawn-with-fn-arg.rs b/src/test/run-pass/sendfn-spawn-with-fn-arg.rs index 63ffa552405..fb5877b8a48 100644 --- a/src/test/run-pass/sendfn-spawn-with-fn-arg.rs +++ b/src/test/run-pass/sendfn-spawn-with-fn-arg.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![allow(unknown_features)] #![feature(box_syntax)] diff --git a/src/test/run-pass/sepcomp-unwind.rs b/src/test/run-pass/sepcomp-unwind.rs index 766e2b6b722..96e9c1ed2cc 100644 --- a/src/test/run-pass/sepcomp-unwind.rs +++ b/src/test/run-pass/sepcomp-unwind.rs @@ -10,6 +10,7 @@ // ignore-bitrig // compile-flags: -C codegen-units=3 +// ignore-emscripten no threads support // Test unwinding through multiple compilation units. diff --git a/src/test/run-pass/slice-panic-1.rs b/src/test/run-pass/slice-panic-1.rs index ed949fe0828..afec06adc86 100644 --- a/src/test/run-pass/slice-panic-1.rs +++ b/src/test/run-pass/slice-panic-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // Test that if a slicing expr[..] fails, the correct cleanups happen. diff --git a/src/test/run-pass/slice-panic-2.rs b/src/test/run-pass/slice-panic-2.rs index 4103c9495e1..2932b585b88 100644 --- a/src/test/run-pass/slice-panic-2.rs +++ b/src/test/run-pass/slice-panic-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // Test that if a slicing expr[..] fails, the correct cleanups happen. diff --git a/src/test/run-pass/spawn-fn.rs b/src/test/run-pass/spawn-fn.rs index 4a35ed609e0..751d833ff9c 100644 --- a/src/test/run-pass/spawn-fn.rs +++ b/src/test/run-pass/spawn-fn.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; fn x(s: String, n: isize) { diff --git a/src/test/run-pass/spawn-types.rs b/src/test/run-pass/spawn-types.rs index ae4fabd34d6..cab190d025f 100644 --- a/src/test/run-pass/spawn-types.rs +++ b/src/test/run-pass/spawn-types.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support /* Make sure we can spawn tasks that take different types of diff --git a/src/test/run-pass/spawn.rs b/src/test/run-pass/spawn.rs index 00be41a27d2..c9a030cf053 100644 --- a/src/test/run-pass/spawn.rs +++ b/src/test/run-pass/spawn.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; pub fn main() { diff --git a/src/test/run-pass/spawn2.rs b/src/test/run-pass/spawn2.rs index 93dc3faaa20..2a5fab8a209 100644 --- a/src/test/run-pass/spawn2.rs +++ b/src/test/run-pass/spawn2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; pub fn main() { diff --git a/src/test/run-pass/spawning-with-debug.rs b/src/test/run-pass/spawning-with-debug.rs index 858b7a83c62..c09ddf52966 100644 --- a/src/test/run-pass/spawning-with-debug.rs +++ b/src/test/run-pass/spawning-with-debug.rs @@ -10,6 +10,7 @@ // ignore-windows // exec-env:RUST_LOG=debug +// ignore-emscripten no threads support // regression test for issue #10405, make sure we don't call println! too soon. diff --git a/src/test/run-pass/task-comm-0.rs b/src/test/run-pass/task-comm-0.rs index 1409caf9c70..0ac232e2e12 100644 --- a/src/test/run-pass/task-comm-0.rs +++ b/src/test/run-pass/task-comm-0.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/task-comm-1.rs b/src/test/run-pass/task-comm-1.rs index b3327d82c3e..9a43780f08f 100644 --- a/src/test/run-pass/task-comm-1.rs +++ b/src/test/run-pass/task-comm-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/task-comm-10.rs b/src/test/run-pass/task-comm-10.rs index ced240502ed..13b40f17292 100644 --- a/src/test/run-pass/task-comm-10.rs +++ b/src/test/run-pass/task-comm-10.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/task-comm-11.rs b/src/test/run-pass/task-comm-11.rs index 7af8f5d3b35..be846795962 100644 --- a/src/test/run-pass/task-comm-11.rs +++ b/src/test/run-pass/task-comm-11.rs @@ -9,6 +9,7 @@ // except according to those terms. // pretty-expanded FIXME #23616 +// ignore-emscripten no threads support #![feature(std_misc)] diff --git a/src/test/run-pass/task-comm-12.rs b/src/test/run-pass/task-comm-12.rs index a3dfa361cec..fdf02e65d8e 100644 --- a/src/test/run-pass/task-comm-12.rs +++ b/src/test/run-pass/task-comm-12.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/task-comm-13.rs b/src/test/run-pass/task-comm-13.rs index 156ddd9c77f..46c5d3a7ce3 100644 --- a/src/test/run-pass/task-comm-13.rs +++ b/src/test/run-pass/task-comm-13.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::sync::mpsc::{channel, Sender}; diff --git a/src/test/run-pass/task-comm-14.rs b/src/test/run-pass/task-comm-14.rs index 90f68deb303..e75a6cf0c87 100644 --- a/src/test/run-pass/task-comm-14.rs +++ b/src/test/run-pass/task-comm-14.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::sync::mpsc::{channel, Sender}; diff --git a/src/test/run-pass/task-comm-15.rs b/src/test/run-pass/task-comm-15.rs index 2994b9c5384..f2ff48ebd95 100644 --- a/src/test/run-pass/task-comm-15.rs +++ b/src/test/run-pass/task-comm-15.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support // pretty-expanded FIXME #23616 #![feature(std_misc)] diff --git a/src/test/run-pass/task-comm-17.rs b/src/test/run-pass/task-comm-17.rs index 8f6f971ce35..fe00f1aba36 100644 --- a/src/test/run-pass/task-comm-17.rs +++ b/src/test/run-pass/task-comm-17.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support // pretty-expanded FIXME #23616 #![feature(std_misc)] diff --git a/src/test/run-pass/task-comm-3.rs b/src/test/run-pass/task-comm-3.rs index 890107998cc..0e8542babab 100644 --- a/src/test/run-pass/task-comm-3.rs +++ b/src/test/run-pass/task-comm-3.rs @@ -10,6 +10,7 @@ #![feature(std_misc)] +// ignore-emscripten no threads support // no-pretty-expanded FIXME #15189 use std::thread; diff --git a/src/test/run-pass/task-comm-7.rs b/src/test/run-pass/task-comm-7.rs index e37160f979c..7b2b9fde9ee 100644 --- a/src/test/run-pass/task-comm-7.rs +++ b/src/test/run-pass/task-comm-7.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![feature(std_misc)] #![allow(dead_assignment)] diff --git a/src/test/run-pass/task-comm-9.rs b/src/test/run-pass/task-comm-9.rs index d8eec4169e3..75fd1826b58 100644 --- a/src/test/run-pass/task-comm-9.rs +++ b/src/test/run-pass/task-comm-9.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/task-life-0.rs b/src/test/run-pass/task-life-0.rs index ba8819fd0b0..312a9f49925 100644 --- a/src/test/run-pass/task-life-0.rs +++ b/src/test/run-pass/task-life-0.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support // pretty-expanded FIXME #23616 #![feature(std_misc)] diff --git a/src/test/run-pass/task-spawn-move-and-copy.rs b/src/test/run-pass/task-spawn-move-and-copy.rs index 6a84ec47c93..9b9081019e4 100644 --- a/src/test/run-pass/task-spawn-move-and-copy.rs +++ b/src/test/run-pass/task-spawn-move-and-copy.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![allow(unknown_features)] #![feature(box_syntax, std_misc)] diff --git a/src/test/run-pass/task-stderr.rs b/src/test/run-pass/task-stderr.rs index 4a1bb5a5916..1f64f40c525 100644 --- a/src/test/run-pass/task-stderr.rs +++ b/src/test/run-pass/task-stderr.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(box_syntax, set_stdio)] use std::io::prelude::*; diff --git a/src/test/run-pass/tcp-stress.rs b/src/test/run-pass/tcp-stress.rs index dca65f03f69..52c920b6f5e 100644 --- a/src/test/run-pass/tcp-stress.rs +++ b/src/test/run-pass/tcp-stress.rs @@ -12,6 +12,7 @@ // ignore-bitrig system ulimit (Too many open files) // ignore-netbsd system ulimit (Too many open files) // ignore-openbsd system ulimit (Too many open files) +// ignore-emscripten no threads or sockets support use std::io::prelude::*; use std::net::{TcpListener, TcpStream}; diff --git a/src/test/run-pass/terminate-in-initializer.rs b/src/test/run-pass/terminate-in-initializer.rs index 83eb351df53..2875f73fc6c 100644 --- a/src/test/run-pass/terminate-in-initializer.rs +++ b/src/test/run-pass/terminate-in-initializer.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support // Issue #787 // Don't try to clean up uninitialized locals diff --git a/src/test/run-pass/threads.rs b/src/test/run-pass/threads.rs index 184338c3294..8c5b84b2c82 100644 --- a/src/test/run-pass/threads.rs +++ b/src/test/run-pass/threads.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(std_misc)] use std::thread; diff --git a/src/test/run-pass/tls-dtors-are-run-in-a-static-binary.rs b/src/test/run-pass/tls-dtors-are-run-in-a-static-binary.rs index da30100f67f..82e586196e3 100644 --- a/src/test/run-pass/tls-dtors-are-run-in-a-static-binary.rs +++ b/src/test/run-pass/tls-dtors-are-run-in-a-static-binary.rs @@ -9,6 +9,7 @@ // except according to those terms. // no-prefer-dynamic +// ignore-emscripten no threads support static mut HIT: bool = false; diff --git a/src/test/run-pass/tls-init-on-init.rs b/src/test/run-pass/tls-init-on-init.rs index 195b814492a..b44c535d3a4 100644 --- a/src/test/run-pass/tls-init-on-init.rs +++ b/src/test/run-pass/tls-init-on-init.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + #![feature(thread_local_state)] use std::thread::{self, LocalKeyState}; diff --git a/src/test/run-pass/trait-bounds-in-arc.rs b/src/test/run-pass/trait-bounds-in-arc.rs index 9aa2badd80b..24dc73d4a43 100644 --- a/src/test/run-pass/trait-bounds-in-arc.rs +++ b/src/test/run-pass/trait-bounds-in-arc.rs @@ -11,6 +11,7 @@ // Tests that a heterogeneous list of existential types can be put inside an Arc // and shared between threads as long as all types fulfill Send. +// ignore-emscripten no threads support // ignore-pretty #![allow(unknown_features)] diff --git a/src/test/run-pass/unique-send-2.rs b/src/test/run-pass/unique-send-2.rs index c32483f629e..2e864797db0 100644 --- a/src/test/run-pass/unique-send-2.rs +++ b/src/test/run-pass/unique-send-2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![allow(unknown_features)] #![feature(box_syntax)] diff --git a/src/test/run-pass/unit-like-struct-drop-run.rs b/src/test/run-pass/unit-like-struct-drop-run.rs index e31d4c811fc..eaee3505a67 100644 --- a/src/test/run-pass/unit-like-struct-drop-run.rs +++ b/src/test/run-pass/unit-like-struct-drop-run.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + // Make sure the destructor is run for unit-like structs. diff --git a/src/test/run-pass/unwind-resource.rs b/src/test/run-pass/unwind-resource.rs index 449e500edbe..85ee21e0902 100644 --- a/src/test/run-pass/unwind-resource.rs +++ b/src/test/run-pass/unwind-resource.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::sync::mpsc::{channel, Sender}; use std::thread; diff --git a/src/test/run-pass/unwind-unique.rs b/src/test/run-pass/unwind-unique.rs index 07bfc8062f9..320a11f64d8 100644 --- a/src/test/run-pass/unwind-unique.rs +++ b/src/test/run-pass/unwind-unique.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![allow(unknown_features)] #![feature(box_syntax)] diff --git a/src/test/run-pass/vector-sort-panic-safe.rs b/src/test/run-pass/vector-sort-panic-safe.rs index 42b05aeea29..a4202217840 100644 --- a/src/test/run-pass/vector-sort-panic-safe.rs +++ b/src/test/run-pass/vector-sort-panic-safe.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support #![feature(rand, num_bits_bytes)] #![feature(const_fn)] diff --git a/src/test/run-pass/weak-lang-item.rs b/src/test/run-pass/weak-lang-item.rs index 5a567758bf4..d9f4ec28920 100644 --- a/src/test/run-pass/weak-lang-item.rs +++ b/src/test/run-pass/weak-lang-item.rs @@ -10,6 +10,7 @@ // aux-build:weak-lang-items.rs +// ignore-emscripten no threads support // pretty-expanded FIXME #23616 extern crate weak_lang_items as other; diff --git a/src/test/run-pass/yield.rs b/src/test/run-pass/yield.rs index 45a74750958..db884638622 100644 --- a/src/test/run-pass/yield.rs +++ b/src/test/run-pass/yield.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; pub fn main() { diff --git a/src/test/run-pass/yield1.rs b/src/test/run-pass/yield1.rs index 69d8431082c..cab68794e1c 100644 --- a/src/test/run-pass/yield1.rs +++ b/src/test/run-pass/yield1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-emscripten no threads support + use std::thread; pub fn main() {