diff --git a/rust-half.spec b/rust-half.spec index 2fa0271..4c1622c 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -153,7 +153,9 @@ use the "use-intrinsics" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip tests that fail with Rust 1.75+ when built in release mode: +# https://github.com/starkat99/half-rs/issues/103 +%cargo_test -- -- --exact --skip bfloat::test::test_nan_conversion_to_larger --skip bfloat::test::test_nan_conversion_to_smaller --skip binary16::test::test_nan_conversion_to_larger --skip binary16::test::test_nan_conversion_to_smaller %endif %changelog diff --git a/rust2rpm.toml b/rust2rpm.toml index ba29a5a..51f165b 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,13 @@ [package] summary = "Half-precision floating point f16 and bf16 types for Rust" +[tests] +skip = [ + "bfloat::test::test_nan_conversion_to_larger", + "bfloat::test::test_nan_conversion_to_smaller", + "binary16::test::test_nan_conversion_to_larger", + "binary16::test::test_nan_conversion_to_smaller", +] +skip-exact = true +comments = ["skip tests that fail with Rust 1.75+ when built in release mode: https://github.com/starkat99/half-rs/issues/103"] +