Skip to content

Commit 80f9484

Browse files
committed
Disable panic tests on Windows
Miri currently does not support `GetProcAddress` and `GetModuleHandleW`, both of which end up getting invoked by the libstd panic hook.
1 parent 660cd55 commit 80f9484

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

tests/run-pass/catch_panic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-windows: Unwind panicking does not currently work on Windows
12
use std::panic::catch_unwind;
23
use std::cell::Cell;
34

tests/run-pass/panic1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-windows: Unwind panicking does not currently work on Windows
12
fn main() {
23
panic!("Miri panic!");
34
}

tests/run-pass/panic1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:2:5
1+
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:3:5

tests/run-pass/panic2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-windows: Unwind panicking does not currently work on Windows
12
fn main() {
23
let val = "Value".to_string();
34
panic!("Miri panic with value: {}", val);

tests/run-pass/panic2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
thread 'main' panicked at 'Miri panic with value: Value', $DIR/panic2.rs:3:5
1+
thread 'main' panicked at 'Miri panic with value: Value', $DIR/panic2.rs:4:5

0 commit comments

Comments
 (0)