enable panic-catching tests in Miri
This commit is contained in:
parent
083b5a0a1b
commit
1e91e4e20a
2 changed files with 3 additions and 4 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue