Skip to content

Commit 9c2d227

Browse files
committed
Ignore panic=abort tests on wasm, emscripten
1 parent 6f36f87 commit 9c2d227

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/test/ui/test-panic-abort-disabled.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// run-fail
55
// check-run-results
66

7+
// ignore-wasm no panic or subprocess support
8+
// ignore-emscripten no panic or subprocess support
9+
710
#![cfg(test)]
811

912
#[test]

src/test/ui/test-panic-abort.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// run-fail
55
// check-run-results
66

7+
// ignore-wasm no panic or subprocess support
8+
// ignore-emscripten no panic or subprocess support
9+
710
#![cfg(test)]
811

912
use std::io::Write;

src/test/ui/test-panic-abort.run.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ testing123
1818
testing321
1919
thread 'main' panicked at 'assertion failed: `(left == right)`
2020
left: `2`,
21-
right: `5`', $DIR/test-panic-abort.rs:27:5
21+
right: `5`', $DIR/test-panic-abort.rs:30:5
2222
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2323

2424

0 commit comments

Comments
 (0)