mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-26 20:10:24 +00:00
Ignore slow tests when running in miri.
There's a few tests that do millions of iterations. Miri is incredibly slow and takes too long to run these (I gave up waiting after 5+ minutes), so we ignore them when testing with miri.
This commit is contained in:
parent
c98804daec
commit
4c203532ba
@ -621,6 +621,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
fn len() {
|
||||
let mut rb: Queue<i32, 3> = Queue::new();
|
||||
|
||||
@ -641,6 +642,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
fn try_overflow() {
|
||||
const N: usize = 23;
|
||||
let mut rb: Queue<i32, N> = Queue::new();
|
||||
|
@ -74,6 +74,7 @@ fn scoped() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
fn contention() {
|
||||
const N: usize = 1024;
|
||||
|
||||
@ -118,6 +119,7 @@ fn contention() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
fn mpmc_contention() {
|
||||
const N: u32 = 64;
|
||||
|
||||
@ -163,6 +165,7 @@ fn mpmc_contention() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
fn unchecked() {
|
||||
const N: usize = 1024;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user