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:
Aaron Hill 2019-11-17 13:47:06 -05:00
parent 660cd55cc7
commit 80f9484c86
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
5 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
// ignore-windows: Unwind panicking does not currently work on Windows
use std::panic::catch_unwind;
use std::cell::Cell;

View File

@ -1,3 +1,4 @@
// ignore-windows: Unwind panicking does not currently work on Windows
fn main() {
panic!("Miri panic!");
}

View File

@ -1 +1 @@
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:2:5
thread 'main' panicked at 'Miri panic!', $DIR/panic1.rs:3:5

View File

@ -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);

View File

@ -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