enable more panic-catching tests in Miri
This commit is contained in:
parent
8af2f22985
commit
a2299799e6
2 changed files with 16 additions and 5 deletions
|
@ -376,7 +376,10 @@ fn panic_safe() {
|
|||
}
|
||||
let mut rng = thread_rng();
|
||||
const DATASZ: usize = 32;
|
||||
#[cfg(not(miri))] // Miri is too slow
|
||||
const NTEST: usize = 10;
|
||||
#[cfg(miri)]
|
||||
const NTEST: usize = 1;
|
||||
|
||||
// don't use 0 in the data -- we want to catch the zeroed-out case.
|
||||
let data = (1..=DATASZ).collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue