rust-lang/portable-simd#266: reduce Miri test count in round.rs
This commit is contained in:
parent
72df4c4505
commit
35e16a1e06
@ -59,7 +59,7 @@ macro_rules! float_rounding_test {
|
||||
const MAX_REPRESENTABLE_VALUE: Scalar =
|
||||
(ALL_MANTISSA_BITS << (core::mem::size_of::<Scalar>() * 8 - <Scalar>::MANTISSA_DIGITS as usize - 1)) as Scalar;
|
||||
|
||||
let mut runner = proptest::test_runner::TestRunner::default();
|
||||
let mut runner = test_helpers::make_runner();
|
||||
runner.run(
|
||||
&test_helpers::array::UniformArrayStrategy::new(-MAX_REPRESENTABLE_VALUE..MAX_REPRESENTABLE_VALUE),
|
||||
|x| {
|
||||
|
@ -78,11 +78,11 @@ impl<T: core::fmt::Debug + DefaultStrategy, const LANES: usize> DefaultStrategy
|
||||
}
|
||||
|
||||
#[cfg(not(miri))]
|
||||
fn make_runner() -> proptest::test_runner::TestRunner {
|
||||
pub fn make_runner() -> proptest::test_runner::TestRunner {
|
||||
Default::default()
|
||||
}
|
||||
#[cfg(miri)]
|
||||
fn make_runner() -> proptest::test_runner::TestRunner {
|
||||
pub fn make_runner() -> proptest::test_runner::TestRunner {
|
||||
// Only run a few tests on Miri
|
||||
proptest::test_runner::TestRunner::new(proptest::test_runner::Config::with_cases(4))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user