Skip to content

Commit ca6786f

Browse files
committed
float test: increase ULP tolerance
1 parent a3801b1 commit ca6786f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/pass/float.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ macro_rules! assert_approx_eq {
4747
}};
4848

4949
($a:expr, $b: expr) => {
50-
// accept up to 8ULP (4ULP for host floats and 4ULP for miri artificial error).
51-
assert_approx_eq!($a, $b, 8);
50+
// Accept up to 10ULP (4ULP for miri artificial error and the rest for host floats).
51+
// We saw failures on an i686-linux host with a limit of 8!
52+
assert_approx_eq!($a, $b, 10);
5253
};
5354
}
5455

0 commit comments

Comments
 (0)