Skip to content

Commit d9ecdfe

Browse files
committed
test: Update Emscripten failures/passing
All tests should now have annotation for *why* they're ignored on emscripten. A few tests no longer need such an annotation as well! Closes #41299
1 parent 0be6863 commit d9ecdfe

Some content is hidden

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

55 files changed

+60
-61
lines changed

src/ci/docker/asmjs/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616
COPY scripts/emscripten.sh /scripts/
1717
RUN bash /scripts/emscripten.sh
1818

19+
COPY scripts/sccache.sh /scripts/
20+
RUN sh /scripts/sccache.sh
21+
1922
ENV PATH=$PATH:/emsdk-portable
2023
ENV PATH=$PATH:/emsdk-portable/clang/e1.37.13_64bit/
2124
ENV PATH=$PATH:/emsdk-portable/emscripten/1.37.13/
@@ -28,7 +31,4 @@ ENV TARGETS=asmjs-unknown-emscripten
2831

2932
ENV RUST_CONFIGURE_ARGS --target=$TARGETS
3033

31-
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
32-
33-
COPY scripts/sccache.sh /scripts/
34-
RUN sh /scripts/sccache.sh
34+
ENV SCRIPT python2.7 ../x.py test --target $TARGETS src/test/run-pass

src/test/compile-fail/macro-expanded-include/test.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no asm! support
1212

1313
#![feature(asm, rustc_attrs)]
1414
#![allow(unused)]

src/test/run-pass/asm-concat-src.rs

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

1111
// pretty-expanded FIXME #23616
12-
// ignore-emscripten
12+
// ignore-emscripten no asm
1313

1414
#![feature(asm)]
1515

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

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

1111
// ignore-windows - this is a unix-specific test
12-
// ignore-emscripten
12+
// ignore-emscripten no processes
1313

1414
#![feature(process_exec, libc)]
1515

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

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

1111
// ignore-windows - this is a unix-specific test
1212
// ignore-pretty issue #37199
13-
// ignore-emscripten
13+
// ignore-emscripten no processes
14+
1415
#![feature(process_exec)]
1516

1617
use std::env;

src/test/run-pass/core-run-destroy.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:--test
12-
// ignore-emscripten
12+
// ignore-emscripten no processes
1313

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

src/test/run-pass/env-args-reverse-iterator.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::env::args;
1414
use std::process::Command;

src/test/run-pass/env-funky-keys.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// ignore-android
1414
// ignore-windows
15-
// ignore-emscripten
15+
// ignore-emscripten no execve
1616
// no-prefer-dynamic
1717

1818
#![feature(libc)]

src/test/run-pass/env-home-dir.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten env vars don't work?
1212

1313
#![feature(path)]
1414

src/test/run-pass/extern-pass-empty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// pretty-expanded FIXME #23616
1414
// ignore-msvc
15-
// ignore-emscripten
15+
// ignore-emscripten emcc asserts on an empty struct as an argument
1616

1717
#[repr(C)]
1818
struct TwoU8s {

src/test/run-pass/fds-are-cloexec.rs

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

1111
// ignore-windows
1212
// ignore-android
13-
// ignore-emscripten
13+
// ignore-emscripten no processes
1414
// ignore-haiku
1515

1616
#![feature(libc)]

src/test/run-pass/format-no-std.rs

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

11-
// ignore-emscripten missing rust_begin_unwind
11+
// ignore-emscripten no no_std executables
1212

1313
#![feature(lang_items, start, alloc)]
1414
#![no_std]

src/test/run-pass/generator/smoke.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no threads support
1212
// compile-flags: --test
1313

1414
#![feature(generators, generator_trait)]

src/test/run-pass/i128.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten i128 doesn't work
1212

1313
#![feature(i128_type, test)]
1414

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

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

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
12+
1213
#![feature(io, process_capture)]
1314

1415
use std::env;

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
#![feature(io, process_capture)]
1414

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::env;
1414
use std::process::Command;

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::process::Command;
1414
use std::env;

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
12+
1213
#![feature(std_misc, os)]
1314

1415
#[cfg(unix)]

src/test/run-pass/issue-2190-1.rs

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

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

1414
use std::thread::Builder;
1515

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no threads
1212

1313
use std::thread;
1414
use std::env;

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no threads
1212
// compile-flags: -O
1313

1414
// Tests that the `vec!` macro does not overflow the stack when it is

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

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

1111
// aux-build:issue-29485.rs
12-
// ignore-emscripten
12+
// ignore-emscripten no threads
1313

1414
#[feature(recover)]
1515

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

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// write_volatile causes an LLVM assert with composite types
1212

13-
// ignore-emscripten See #41299: probably a bad optimization
14-
1513
#![feature(volatile)]
1614
use std::ptr::{read_volatile, write_volatile};
1715

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
// Previously libstd would set stdio descriptors of a child process
1414
// by `dup`ing the requested descriptors to inherit directly into the

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

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::process::{Command, Stdio};
1414
use std::env;

src/test/run-pass/linkage1.rs

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

1111
// ignore-windows
1212
// ignore-macos
13-
// ignore-emscripten
13+
// ignore-emscripten doesn't support this linkage
1414
// aux-build:linkage1.rs
1515

1616
#![feature(linkage)]

src/test/run-pass/multi-panic.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
fn check_for_no_backtrace(test: std::process::Output) {
1414
assert!(!test.status.success());

src/test/run-pass/no-stdio.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212
// ignore-android
1313

1414
#![feature(libc)]

src/test/run-pass/out-of-stack.rs

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

1111
// ignore-android: FIXME (#20004)
1212
// ignore-musl
13-
// ignore-emscripten
13+
// ignore-emscripten no processes
1414

1515
#![feature(asm)]
1616
#![feature(libc)]

src/test/run-pass/packed-struct-layout.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
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-
// ignore-emscripten Not sure what's happening here.
11-
1210

1311
use std::mem;
1412

src/test/run-pass/packed-tuple-struct-layout.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
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-
// ignore-emscripten
11-
1210

1311
use std::mem;
1412

src/test/run-pass/panic-runtime/abort-link-to-unwinding-crates.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// compile-flags:-C panic=abort
1212
// aux-build:exit-success-if-unwind.rs
1313
// no-prefer-dynamic
14-
// ignore-emscripten Function not implemented
14+
// ignore-emscripten no processes
1515

1616
extern crate exit_success_if_unwind;
1717

src/test/run-pass/panic-runtime/abort.rs

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

1111
// compile-flags:-C panic=abort
1212
// no-prefer-dynamic
13-
// ignore-emscripten Function not implemented.
13+
// ignore-emscripten no processes
1414

1515
use std::process::Command;
1616
use std::env;

src/test/run-pass/panic-runtime/lto-abort.rs

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

1111
// compile-flags:-C lto -C panic=abort
1212
// no-prefer-dynamic
13-
// ignore-emscripten Function not implemented.
13+
// ignore-emscripten no processes
1414

1515
use std::process::Command;
1616
use std::env;

src/test/run-pass/panic-runtime/lto-unwind.rs

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

1111
// compile-flags:-C lto -C panic=unwind
1212
// no-prefer-dynamic
13-
// ignore-emscripten Function not implemented.
13+
// ignore-emscripten no processes
1414

1515
use std::process::Command;
1616
use std::env;

src/test/run-pass/process-envs.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::process::Command;
1414
use std::env;

src/test/run-pass/process-exit.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::env;
1414
use std::process::{self, Command, Stdio};

src/test/run-pass/process-remove-from-env.rs

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

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::process::Command;
1414
use std::env;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// non-ASCII characters. The child process ensures all the strings are
1717
// intact.
1818

19-
// ignore-emscripten
19+
// ignore-emscripten no processes
2020

2121
use std::io::prelude::*;
2222
use std::io;

src/test/run-pass/process-status-inherits-stdin.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
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-
// ignore-emscripten Function not implemented.
10+
11+
// ignore-emscripten no processes
1112

1213
use std::env;
1314
use std::io;

0 commit comments

Comments
 (0)