Skip to content

Commit

Permalink
Merge pull request #156 from RalfJung/miri
Browse files Browse the repository at this point in the history
enable another unwinding test in Miri
  • Loading branch information
bluss authored Mar 15, 2020
2 parents 4f0faaf + b7fd8d6 commit c61da29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub unsafe fn encode_utf8(ch: char, ptr: *mut u8, len: usize) -> Result<usize, E


#[test]
#[cfg(not(miri))] // Miri is too slow
#[cfg_attr(miri, ignore)] // Miri is too slow
fn test_encode_utf8() {
// Test that all codepoints are encoded correctly
let mut data = [0u8; 16];
Expand Down
1 change: 0 additions & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ fn test_drop() {
}

#[test]
#[cfg(not(miri))] // Miri does not support unwinding
fn test_drop_panics() {
use std::cell::Cell;
use std::panic::catch_unwind;
Expand Down

0 comments on commit c61da29

Please sign in to comment.