1- From eea3bbaed34ab210868c324219a862a9d5f4681c Mon Sep 17 00:00:00 2001
1+ From eec874c889b8d24e5ad50faded24288150f057b1 Mon Sep 17 00:00:00 2001
22From: Afonso Bordado <afonsobordado@az8.co>
33Date: Tue, 27 Sep 2022 08:13:58 +0100
44Subject: [PATCH] Disable rand tests on mingw
@@ -9,28 +9,28 @@ Subject: [PATCH] Disable rand tests on mingw
99 2 files changed, 6 insertions(+)
1010
1111diff --git a/rand_distr/src/pareto.rs b/rand_distr/src/pareto.rs
12- index 217899ed9a..5f8e2c9bbb 100644
12+ index 217899e..9cedeb7 100644
1313--- a/rand_distr/src/pareto.rs
1414+++ b/rand_distr/src/pareto.rs
1515@@ -107,6 +107,8 @@ mod tests {
1616 }
1717
1818 #[test]
1919+ // This is broken on x86_64-pc-windows-gnu presumably due to a broken powf implementation
20- + #[cfg(not( all(target_os = "windows", target_env = "gnu")) )]
20+ + #[cfg_attr( all(target_os = "windows", target_env = "gnu"), ignore )]
2121 fn value_stability() {
2222 fn test_samples<F: Float + core::fmt::Debug, D: Distribution<F>>(
2323 distr: D, zero: F, expected: &[F],
2424diff --git a/rand_distr/tests/value_stability.rs b/rand_distr/tests/value_stability.rs
25- index 192ba748b7..10c6ac24f6 100644
25+ index 192ba74..0101ace 100644
2626--- a/rand_distr/tests/value_stability.rs
2727+++ b/rand_distr/tests/value_stability.rs
2828@@ -72,6 +72,8 @@ fn unit_disc_stability() {
2929 }
3030
3131 #[test]
3232+ // This is broken on x86_64-pc-windows-gnu
33- + #[cfg(not( all(target_os = "windows", target_env = "gnu")) )]
33+ + #[cfg_attr( all(target_os = "windows", target_env = "gnu"), ignore )]
3434 fn pareto_stability() {
3535 test_samples(213, Pareto::new(1.0, 1.0).unwrap(), &[
3636 1.0423688f32, 2.1235929, 4.132709, 1.4679428,
@@ -39,9 +39,9 @@ index 192ba748b7..10c6ac24f6 100644
3939
4040 #[test]
4141+ // This is broken on x86_64-pc-windows-gnu
42- + #[cfg(not( all(target_os = "windows", target_env = "gnu")) )]
42+ + #[cfg_attr( all(target_os = "windows", target_env = "gnu"), ignore )]
4343 fn gamma_stability() {
4444 // Gamma has 3 cases: shape == 1, shape < 1, shape > 1
4545 test_samples(223, Gamma::new(1.0, 5.0).unwrap(), &[
46- - -
47- 2.30.1.windows .1
46+ - -
47+ 2.25 .1
0 commit comments