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.
This commit is contained in:
parent
660cd55cc7
commit
80f9484c86
@ -1,3 +1,4 @@
|
||||
// ignore-windows: Unwind panicking does not currently work on Windows
|
||||
use std::panic::catch_unwind;
|
||||
use std::cell::Cell;
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
// ignore-windows: Unwind panicking does not currently work on Windows
|
||||
fn main() {
|
||||
panic!("Miri panic!");
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:2:5
|
||||
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:3:5
|
||||
|
@ -1,3 +1,4 @@
|
||||
// ignore-windows: Unwind panicking does not currently work on Windows
|
||||
fn main() {
|
||||
let val = "Value".to_string();
|
||||
panic!("Miri panic with value: {}", val);
|
||||
|
@ -1 +1 @@
|
||||
thread 'main' panicked at 'Miri panic with value: Value', $DIR/panic2.rs:3:5
|
||||
thread 'main' panicked at 'Miri panic with value: Value', $DIR/panic2.rs:4:5
|
||||
|
Loading…
Reference in New Issue
Block a user