Skip to content

Commit 7fc4df6

Browse files
committed
Auto merge of #31570 - tomaka:ignore-emscripten, r=brson
Ignores 82 rpass tests that use threads. I took care to only ignore tests that call `thread::spawn`. Some tests, for example `issue-16597`, also do fail because of lack of threads support, but for other reasons. With this PR, we're down to 49 failures. r? @brson
2 parents 1ab22d7 + ee91c25 commit 7fc4df6

File tree

82 files changed

+129
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+129
-2
lines changed

Diff for: src/test/run-pass/atomic-print.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::{env, fmt, process, sync, thread};
1214

1315
struct SlowFmt(u32);

Diff for: src/test/run-pass/box-of-array-of-drop-1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
1212
// destructor.
1313

14+
// ignore-emscripten no threads support
15+
1416
#![feature(const_fn)]
1517

1618
use std::thread;

Diff for: src/test/run-pass/box-of-array-of-drop-2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
1212
// destructor.
1313

14+
// ignore-emscripten no threads support
15+
1416
#![feature(const_fn)]
1517

1618
use std::thread;

Diff for: src/test/run-pass/cci_capture_clause.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// that use capture clauses.
1515

1616
// pretty-expanded FIXME #23616
17+
// ignore-emscripten no threads support
1718

1819
extern crate cci_capture_clause;
1920

Diff for: src/test/run-pass/child-outlives-parent.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Reported as issue #126, child leaks the string.
1212

1313
// pretty-expanded FIXME #23616
14+
// ignore-emscripten no threads support
1415

1516
#![feature(std_misc)]
1617

Diff for: src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// It's unclear how likely such a bug is to recur, but it seems like a
2525
// scenario worth testing.
2626

27+
// ignore-emscripten no threads support
2728

2829
#![allow(unknown_features)]
2930
#![feature(box_syntax)]

Diff for: src/test/run-pass/clone-with-exterior.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
1112

1213
#![allow(unknown_features)]
1314
#![feature(box_syntax, std_misc)]

Diff for: src/test/run-pass/comm.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(std_misc)]
1214

1315
use std::thread;

Diff for: src/test/run-pass/core-run-destroy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-pretty
1212
// compile-flags:--test
13+
// ignore-emscripten
1314

1415
// NB: These tests kill child processes. Valgrind sees these children as leaking
1516
// memory, which makes for some *confusing* logs. That's why these are here

Diff for: src/test/run-pass/drop-flag-skip-sanity-check.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: -Z force-dropflag-checks=off
12+
// ignore-emscripten no threads support
1213

1314
// Quick-and-dirty test to ensure -Z force-dropflag-checks=off works as
1415
// expected. Note that the inlined drop-flag is slated for removal

Diff for: src/test/run-pass/extern-call-deep2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(libc)]
1214

1315
extern crate libc;

Diff for: src/test/run-pass/extern-call-scrub.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// make sure the stack pointers are maintained properly in both
1313
// directions
1414

15+
// ignore-emscripten no threads support
16+
1517
#![feature(libc, std_misc)]
1618

1719
extern crate libc;

Diff for: src/test/run-pass/fds-are-cloexec.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-windows
1212
// ignore-android
13+
// ignore-emscripten
1314

1415
#![feature(libc)]
1516

Diff for: src/test/run-pass/foreign-call-no-runtime.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// ignore-aarch64
12+
// ignore-emscripten no threads support
13+
1214
#![feature(libc)]
1315

1416
extern crate libc;

Diff for: src/test/run-pass/init-large-type.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// optimisation.
1414

1515
// pretty-expanded FIXME #23616
16+
// ignore-emscripten no threads support
1617

1718
#![feature(intrinsics, std_misc)]
1819

Diff for: src/test/run-pass/int-abs-overflow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: -Z force-overflow-checks=on
12+
// ignore-emscripten no threads support
1213

1314
use std::thread;
1415

Diff for: src/test/run-pass/intrinsic-move-val-cleanups.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
// This test is checking that the move_val_init intrinsic is
1214
// respecting cleanups for both of its argument expressions.
1315
//

Diff for: src/test/run-pass/issue-13494.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
// This test may not always fail, but it can be flaky if the race it used to
1214
// expose is still present.
1315

Diff for: src/test/run-pass/issue-16560.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
1112

1213
#![feature(unboxed_closures)]
1314

Diff for: src/test/run-pass/issue-16671.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// DON'T REENABLE THIS UNLESS YOU'VE ACTUALLY FIXED THE UNDERLYING ISSUE
1212
// ignore-android seems to block forever
1313

14+
// ignore-emscripten no threads support
15+
1416
#![forbid(warnings)]
1517

1618
// Pretty printing tests complain about `use std::predule::*`

Diff for: src/test/run-pass/issue-21291.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
// Regression test for unwrapping the result of `join`, issue #21291
1214

1315
use std::thread;

Diff for: src/test/run-pass/issue-22864-2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
pub fn main() {
1214
let f = || || 0;
1315
std::thread::spawn(f());

Diff for: src/test/run-pass/issue-25089.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::thread;
1214

1315
struct Foo(i32);

Diff for: src/test/run-pass/issue-26655.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(const_fn)]
1214

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

Diff for: src/test/run-pass/issue-29488.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::thread;
1214

1315
struct Foo;

Diff for: src/test/run-pass/issue-30018-panic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// spawned thread to isolate the expected error result from the
1414
// SIGTRAP injected by the drop-flag consistency checking.
1515

16+
// ignore-emscripten no threads support
17+
1618
struct Foo;
1719

1820
impl Drop for Foo {

Diff for: src/test/run-pass/issue-4446.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::sync::mpsc::channel;
1214
use std::thread;
1315

Diff for: src/test/run-pass/issue-4448.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
1112

1213
use std::sync::mpsc::channel;
1314
use std::thread;

Diff for: src/test/run-pass/issue-8460.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(zero_one)]
1214

1315
use std::num::Zero;

Diff for: src/test/run-pass/issue-8827.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(std_misc)]
1214

1315
use std::thread;

Diff for: src/test/run-pass/issue-9396.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::sync::mpsc::{TryRecvError, channel};
1214
use std::thread;
1315

Diff for: src/test/run-pass/ivec-tag.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// pretty-expanded FIXME #23616
12+
// ignore-emscripten no threads support
1213

1314
#![feature(std_misc)]
1415

Diff for: src/test/run-pass/logging-only-prints-once.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-windows
12+
// ignore-emscripten no threads support
1213
// exec-env:RUST_LOG=debug
1314

1415
use std::cell::Cell;

Diff for: src/test/run-pass/macro-with-braces-in-expr-position.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
use std::thread;
1214

1315
macro_rules! expr { ($e: expr) => { $e } }

Diff for: src/test/run-pass/moves-based-on-type-capture-clause.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(std_misc)]
1214

1315
use std::thread;

Diff for: src/test/run-pass/nested-vec-3.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
// Test that using the `vec!` macro nested within itself works when
1214
// the contents implement Drop and we hit a panic in the middle of
1315
// construction.

Diff for: src/test/run-pass/no-landing-pads.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: -Z no-landing-pads
12-
12+
// ignore-emscripten no threads support
1313

1414
use std::thread;
1515

Diff for: src/test/run-pass/panic-handler-flail-wildly.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010
#![feature(panic_handler, std_panic)]
1111

12+
// ignore-emscripten no threads support
13+
1214
use std::panic;
1315
use std::thread;
1416

Diff for: src/test/run-pass/panic-handler-set-twice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010
#![feature(panic_handler, const_fn, std_panic)]
1111

12+
// ignore-emscripten no threads support
13+
1214
use std::sync::atomic::{AtomicUsize, Ordering};
1315
use std::panic;
1416
use std::thread;

Diff for: src/test/run-pass/panic-in-dtor-drops-fields.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
1112

1213
use std::thread;
1314

Diff for: src/test/run-pass/panic-recover-propagate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![feature(std_panic, recover, panic_propagate, panic_handler, const_fn)]
1214

1315
use std::sync::atomic::{AtomicUsize, Ordering};

Diff for: src/test/run-pass/process-sigpipe.rs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// (instead of running forever), and that it does not print an error
1919
// message about a broken pipe.
2020

21+
// ignore-emscripten no threads support
22+
2123
use std::process;
2224
use std::thread;
2325

Diff for: src/test/run-pass/rust-log-filter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// exec-env:RUST_LOG=rust_log_filter/foo
12-
12+
// ignore-emscripten no threads support
1313

1414
#![allow(unknown_features)]
1515
#![feature(box_syntax, std_misc, rustc_private)]

Diff for: src/test/run-pass/send-resource.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// pretty-expanded FIXME #23616
12+
// ignore-emscripten no threads support
1213

1314
#![feature(std_misc)]
1415

Diff for: src/test/run-pass/sendfn-spawn-with-fn-arg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-emscripten no threads support
12+
1113
#![allow(unknown_features)]
1214
#![feature(box_syntax)]
1315

Diff for: src/test/run-pass/sepcomp-unwind.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-bitrig
1212
// compile-flags: -C codegen-units=3
13+
// ignore-emscripten no threads support
1314

1415
// Test unwinding through multiple compilation units.
1516

0 commit comments

Comments
 (0)