mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
enable panic-catching tests in Miri
This commit is contained in:
parent
083b5a0a1b
commit
1e91e4e20a
@ -347,7 +347,7 @@ fn assert_covariance() {
|
||||
// Destructors must be called exactly once per element.
|
||||
// FIXME: re-enable emscripten once it can unwind again
|
||||
#[test]
|
||||
#[cfg(not(any(miri, target_os = "emscripten")))] // Miri does not support catching panics
|
||||
#[cfg(not(target_os = "emscripten"))]
|
||||
fn panic_safe() {
|
||||
use std::cmp;
|
||||
use std::panic::{self, AssertUnwindSafe};
|
||||
|
@ -944,10 +944,9 @@ fn drain_filter_complex() {
|
||||
}
|
||||
}
|
||||
|
||||
// Miri does not support catching panics
|
||||
// FIXME: re-enable emscripten once it can unwind again
|
||||
#[test]
|
||||
#[cfg(not(any(miri, target_os = "emscripten")))]
|
||||
#[cfg(not(target_os = "emscripten"))]
|
||||
fn drain_filter_consumed_panic() {
|
||||
use std::rc::Rc;
|
||||
use std::sync::Mutex;
|
||||
@ -999,7 +998,7 @@ fn drain_filter_consumed_panic() {
|
||||
|
||||
// FIXME: Re-enable emscripten once it can catch panics
|
||||
#[test]
|
||||
#[cfg(not(any(miri, target_os = "emscripten")))] // Miri does not support catching panics
|
||||
#[cfg(not(target_os = "emscripten"))]
|
||||
fn drain_filter_unconsumed_panic() {
|
||||
use std::rc::Rc;
|
||||
use std::sync::Mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user