enable another unwinding test in Miri
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ pub unsafe fn encode_utf8(ch: char, ptr: *mut u8, len: usize) -> Result<usize, E
|
|||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(miri))] // Miri is too slow
|
#[cfg_attr(miri, ignore)] // Miri is too slow
|
||||||
fn test_encode_utf8() {
|
fn test_encode_utf8() {
|
||||||
// Test that all codepoints are encoded correctly
|
// Test that all codepoints are encoded correctly
|
||||||
let mut data = [0u8; 16];
|
let mut data = [0u8; 16];
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ fn test_drop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(miri))] // Miri does not support unwinding
|
|
||||||
fn test_drop_panics() {
|
fn test_drop_panics() {
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::panic::catch_unwind;
|
use std::panic::catch_unwind;
|
||||||
|
|||||||
Reference in New Issue
Block a user