Skip to content

Commit 2e80534

Browse files
committed
[emscripten] Ignore tests
Most of these rely on spawning processes, which is not possible in Emscripten. Based on rust-lang#31623
1 parent b4c66fa commit 2e80534

33 files changed

+44
-1
lines changed

src/test/run-pass-fulldeps/linkage-visibility.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// ignore-android: FIXME(#10356)
1313
// ignore-windows: std::dynamic_lib does not work on Windows well
1414
// ignore-musl
15+
// ignore-emscripten no dynamic linking
1516

1617
extern crate linkage_visibility as foo;
1718

src/test/run-pass-fulldeps/logging-enabled.rs

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

1111
// exec-env:RUST_LOG=logging_enabled=info
12+
// ignore-emscripten: FIXME(#31622)
1213

1314

1415
#![feature(rustc_private)]

src/test/run-pass-fulldeps/logging-separate-lines.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-windows
1212
// exec-env:RUST_LOG=debug
1313
// compile-flags:-C debug-assertions=y
14+
// ignore-emscripten: FIXME(#31622)
1415

1516
#![feature(rustc_private)]
1617

src/test/run-pass/backtrace-debuginfo.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
// compile-flags:-g -Cllvm-args=-enable-tail-merge=0
1919
// ignore-pretty as this critically relies on line numbers
20+
// ignore-emscripten spawning processes is not supported
2021

2122
use std::io;
2223
use std::io::prelude::*;

src/test/run-pass/backtrace.rs

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

1111
// no-pretty-expanded FIXME #15189
1212
// ignore-android FIXME #17520
13+
// ignore-emscripten spawning processes is not supported
1314
// compile-flags:-g
1415

1516
use std::env;

src/test/run-pass/command-before-exec.rs

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

1111
// ignore-windows - this is a unix-specific test
12+
// ignore-emscripten
1213

1314
#![feature(process_exec, libc)]
1415

src/test/run-pass/command-exec.rs

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

1111
// ignore-windows - this is a unix-specific test
12+
// ignore-emscripten
1213
// ignore-pretty
1314

1415
#![feature(process_exec)]

src/test/run-pass/drop-flag-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=on
12+
// ignore-emscripten
1213

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

src/test/run-pass/drop-trait-enum.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

src/test/run-pass/env-home-dir.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
1112

1213
#![feature(path)]
1314

src/test/run-pass/exec-env.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:TEST_EXEC_ENV=22
12-
12+
// ignore-emscripten FIXME: issue #31622
1313

1414
use std::env;
1515

src/test/run-pass/hashmap-memory.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 support for threads
12+
1113
#![allow(unknown_features)]
1214
#![feature(std_misc)]
1315

src/test/run-pass/issue-10626.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
1112

1213
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
1314
// that we don't die in a large ball of fire

src/test/run-pass/issue-12133-3.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// aux-build:issue-12133-dylib.rs
1313
// aux-build:issue-12133-dylib2.rs
1414
// ignore-musl
15+
// ignore-emscripten no dylib support
1516

1617
// pretty-expanded FIXME #23616
1718

src/test/run-pass/issue-13304.rs

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

1111
// ignore-aarch64
12+
// ignore-emscripten
1213
#![feature(io, process_capture)]
1314

1415
use std::env;

src/test/run-pass/issue-14456.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
1112

1213
#![feature(io, process_capture)]
1314

src/test/run-pass/issue-14940.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
1112

1213
use std::env;
1314
use std::process::Command;

src/test/run-pass/issue-16272.rs

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

1111
// ignore-aarch64
12+
// ignore-emscripten
1213

1314
use std::process::Command;
1415
use std::env;

src/test/run-pass/issue-20091.rs

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

1111
// ignore-aarch64
12+
// ignore-emscripten
1213
#![feature(std_misc, os)]
1314

1415
#[cfg(unix)]

src/test/run-pass/issue-24313.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
12+
1113
use std::thread;
1214
use std::env;
1315
use std::process::Command;

src/test/run-pass/issue-30490.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
12+
1113
// Previously libstd would set stdio descriptors of a child process
1214
// by `dup`ing the requested descriptors to inherit directly into the
1315
// stdio descriptors. This, however, would incorrectly handle cases

src/test/run-pass/linkage1.rs

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

1111
// ignore-windows
1212
// ignore-macos
13+
// ignore-emscripten
1314
// aux-build:linkage1.rs
1415

1516
#![feature(linkage)]

src/test/run-pass/multi-panic.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
12+
1113
fn check_for_no_backtrace(test: std::process::Output) {
1214
assert!(!test.status.success());
1315
let err = String::from_utf8_lossy(&test.stderr);

src/test/run-pass/no-stdio.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
12+
1113
#![feature(libc)]
1214

1315
extern crate libc;

src/test/run-pass/panic-handler-chain.rs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
11+
// ignore-emscripten no threads support
12+
1013
#![feature(panic_handler, const_fn, std_panic)]
1114

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

src/test/run-pass/process-exit.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
12+
1113
use std::env;
1214
use std::process::{self, Command, Stdio};
1315

src/test/run-pass/process-remove-from-env.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
1112

1213
use std::process::Command;
1314
use std::env;

src/test/run-pass/process-spawn-with-unicode-params.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// intact.
1818

1919
// ignore-aarch64
20+
// ignore-emscripten
2021

2122
use std::io::prelude::*;
2223
use std::io;

src/test/run-pass/running-with-no-runtime.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
12+
1113
#![feature(start)]
1214

1315
use std::ffi::CStr;

src/test/run-pass/segfault-no-out-of-stack.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 can't run commands
12+
1113
#![feature(libc)]
1214

1315
extern crate libc;

src/test/run-pass/signal-exit-status.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
1213

1314
use std::env;
1415
use std::process::Command;

src/test/run-pass/sigpipe-should-be-ignored.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// doesn't die in a ball of fire, but rather it's gracefully handled.
1313

1414
// ignore-aarch64
15+
// ignore-emscripten
1516

1617
use std::env;
1718
use std::io::prelude::*;

src/test/run-pass/wait-forked-but-failed-child.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
1112

1213
#![feature(libc)]
1314

0 commit comments

Comments
 (0)