]> git.lizzy.rs Git - rust.git/commitdiff
Disable panic tests on Windows
authorAaron Hill <aa1ronham@gmail.com>
Sun, 17 Nov 2019 18:47:06 +0000 (13:47 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 17 Nov 2019 18:49:31 +0000 (13:49 -0500)
Miri currently does not support `GetProcAddress`
and `GetModuleHandleW`, both of which end up getting invoked by the
libstd panic hook.

tests/run-pass/catch_panic.rs
tests/run-pass/panic1.rs
tests/run-pass/panic1.stderr
tests/run-pass/panic2.rs
tests/run-pass/panic2.stderr

index 8e254385d4743413b944c662bf83e1633287d683..228317e893695505dd95293ce5fa475d004cd08e 100644 (file)
@@ -1,3 +1,4 @@
+// ignore-windows: Unwind panicking does not currently work on Windows
 use std::panic::catch_unwind;
 use std::cell::Cell;
 
index b9bb52b95b13fce39ec2a9be00a9362d1cb89477..261db018d6da065c25b024adb9d8dfcb37b99c1a 100644 (file)
@@ -1,3 +1,4 @@
+// ignore-windows: Unwind panicking does not currently work on Windows
 fn main() {
     panic!("Miri panic!");
 }
index a29ba479825a7ec7b47175c8d600752e5d301f9b..b1607dd864fb856d40d89a1d833f335c54e3d3c3 100644 (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
index 9a1da6656c26d5371ed35cdf4f795c952a38fe2d..deaf606d9a2e0d04343e4219dbf845dc1a568475 100644 (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);
index de70fd4d583e9ffc777d4b62fa1746a260d34365..bc5df83ec0f076cee623baa7a625253641ea3206 100644 (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