Skip to content

Commit 7c4fe00

Browse files
committed
Ignore threaded capture tests on WASM w/o threads
1 parent db15596 commit 7c4fe00

4 files changed

+4
-2
lines changed

src/test/ui/test-thread-capture.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// run-flags: --test-threads=1
44
// check-run-results
55
// exec-env:RUST_BACKTRACE=0
6+
// ignore-emscripten no threads support
67

78
#[test]
89
fn thready_pass() {

src/test/ui/test-thread-capture.run.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fee
1010
fie
1111
foe
1212
fum
13-
thread 'main' panicked at 'explicit panic', $DIR/test-thread-capture.rs:29:5
13+
thread 'main' panicked at 'explicit panic', $DIR/test-thread-capture.rs:30:5
1414
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1515

1616

src/test/ui/test-thread-nocapture.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// run-flags: --test-threads=1 --nocapture
44
// check-run-results
55
// exec-env:RUST_BACKTRACE=0
6+
// ignore-emscripten no threads support
67

78
#[test]
89
fn thready_pass() {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
thread 'main' panicked at 'explicit panic', $DIR/test-thread-nocapture.rs:29:5
1+
thread 'main' panicked at 'explicit panic', $DIR/test-thread-nocapture.rs:30:5
22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)