Skip to content

Commit 405adb6

Browse files
committed
Ignore some failing test on wasm32-unknown-emscripten
See rust-lang#42629 and rust-lang#42630.
1 parent 554f21b commit 405adb6

File tree

10 files changed

+18
-2
lines changed

10 files changed

+18
-2
lines changed

src/libcore/tests/num/dec2flt/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ macro_rules! test_literal {
3333
})
3434
}
3535

36+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
3637
#[test]
3738
fn ordinary() {
3839
test_literal!(1.0);
@@ -43,6 +44,7 @@ fn ordinary() {
4344
test_literal!(2.2250738585072014e-308);
4445
}
4546

47+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
4648
#[test]
4749
fn special_code_paths() {
4850
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand

src/libcore/tests/num/dec2flt/rawfp.rs

+3
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ fn rounding_overflow() {
8686
assert_eq!(rounded.k, adjusted_k + 1);
8787
}
8888

89+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
8990
#[test]
9091
fn prev_float_monotonic() {
9192
let mut x = 1.0;
@@ -121,6 +122,7 @@ fn next_float_inf() {
121122
assert_eq!(next_float(f64::INFINITY), f64::INFINITY);
122123
}
123124

125+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
124126
#[test]
125127
fn next_prev_identity() {
126128
for &x in &SOME_FLOATS {
@@ -131,6 +133,7 @@ fn next_prev_identity() {
131133
}
132134
}
133135

136+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
134137
#[test]
135138
fn next_float_monotonic() {
136139
let mut x = 0.49999999999999;

src/libcore/tests/num/flt2dec/strategy/dragon.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fn test_mul_pow10() {
2424
}
2525
}
2626

27+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
2728
#[test]
2829
fn shortest_sanity_test() {
2930
f64_shortest_sanity_test(format_shortest);

src/libcore/tests/num/flt2dec/strategy/grisu.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ fn test_max_pow10_no_more_than() {
3838
}
3939

4040

41+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
4142
#[test]
4243
fn shortest_sanity_test() {
4344
f64_shortest_sanity_test(format_shortest);

src/libcore/tests/num/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ test_impl_from! { test_u16f64, u16, f64 }
169169
test_impl_from! { test_u32f64, u32, f64 }
170170

171171
// Float -> Float
172+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
172173
#[test]
173174
fn test_f32f64() {
174175
use core::f32;

src/libstd/f64.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ mod tests {
11581158
assert_eq!(Fp::Zero, neg_zero.classify());
11591159
}
11601160

1161+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
11611162
#[test]
11621163
fn test_one() {
11631164
let one: f64 = 1.0f64;
@@ -1210,6 +1211,7 @@ mod tests {
12101211
assert!((-109.2f64).is_finite());
12111212
}
12121213

1214+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
12131215
#[test]
12141216
fn test_is_normal() {
12151217
let nan: f64 = NAN;
@@ -1227,6 +1229,7 @@ mod tests {
12271229
assert!(!1e-308f64.is_normal());
12281230
}
12291231

1232+
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
12301233
#[test]
12311234
fn test_classify() {
12321235
let nan: f64 = NAN;

src/test/run-pass/asm-concat-src.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// pretty-expanded FIXME #23616
12-
// ignore-asmjs
12+
// ignore-emscripten
1313

1414
#![feature(asm)]
1515

src/test/run-pass/conditional-compile-arch.rs

+3
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ pub fn main() { }
3636

3737
#[cfg(target_arch = "asmjs")]
3838
pub fn main() { }
39+
40+
#[cfg(target_arch = "wasm32")]
41+
pub fn main() { }

src/test/run-pass/issue-27859.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-wasm32 issue 42629
12+
1113
#[inline(never)]
1214
fn foo(a: f32, b: f32) -> f32 {
1315
a % b

src/test/run-pass/out-of-stack.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// ignore-android: FIXME (#20004)
1212
// ignore-musl
13-
// ignore-asmjs
13+
// ignore-emscripten
1414

1515
#![feature(asm)]
1616
#![feature(libc)]

0 commit comments

Comments
 (0)