Debian Codegraph @

debian/patches/skip-tests-riscv64.patch

raw
1 Test failures reported upstream at https://github.com/ron-rs/ron/issues/592
2
3 Compared to versoin 0.7.1, which is the version in testin at the time of
4 writing, these tests seem to be newly added tests rather than regressions.
5
6 Index: rust-ron-0.12.0/src/de/tests.rs
7 ===================================================================
8 --- rust-ron-0.12.0.orig/src/de/tests.rs
9 +++ rust-ron-0.12.0/src/de/tests.rs
10 @@ -672,6 +672,7 @@ fn test_any_number_precision() {
11 check_de_any_number("+.3", 0.3_f64);
12 check_de_any_number("0.3", 0.3_f64);
13 check_de_any_number("NaN", f32::NAN);
14 + #[cfg(not(target_arch="riscv64"))]
15 check_de_any_number("-NaN", -f32::NAN);
16 check_de_any_number("inf", f32::INFINITY);
17 check_de_any_number("-inf", f32::NEG_INFINITY);
18 @@ -708,6 +709,7 @@ fn test_value_special_floats() {
19 from_str("+NaN"),
20 Ok(Value::Number(Number::F32(f32::NAN.into())))
21 );
22 + #[cfg(not(target_arch="riscv64"))]
23 assert_eq!(
24 from_str("-NaN"),
25 Ok(Value::Number(Number::F32((-f32::NAN).into())))