Skip to content

Commit

Permalink
Fix miri ignore attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
marmeladema committed Mar 13, 2023
1 parent 6c2d95b commit 10dd52e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion capnp/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ pub mod test {
buf.clear();
}

#[cfg_attr(miri, ignore)] // miri takes a long time with quickcheck
quickcheck! {
#[cfg_attr(miri, ignore)] // miri takes a long time with quickcheck
fn test_round_trip(segments: Vec<Vec<crate::Word>>) -> TestResult {
if segments.is_empty() { return TestResult::discard(); }
let mut buf: Vec<u8> = Vec::new();
Expand All @@ -849,6 +849,7 @@ pub mod test {
}))
}

#[cfg_attr(miri, ignore)] // miri takes a long time with quickcheck
fn test_round_trip_slice_segments(segments: Vec<Vec<crate::Word>>) -> TestResult {
if segments.is_empty() { return TestResult::discard(); }
let borrowed_segments: &[&[u8]] = &segments.iter()
Expand Down
2 changes: 1 addition & 1 deletion capnp/src/serialize_packed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ mod tests {
);
}

#[cfg_attr(miri, ignore)] // miri takes a long time with quickcheck
quickcheck! {
#[cfg_attr(miri, ignore)] // miri takes a long time with quickcheck
fn test_round_trip(segments: Vec<Vec<crate::Word>>) -> TestResult {
use crate::message::ReaderSegments;
if segments.is_empty() { return TestResult::discard(); }
Expand Down

0 comments on commit 10dd52e

Please sign in to comment.