diff --git a/changelog b/changelog index 8b26382..672cfae 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +* Thu Feb 3 2023 blinxen - 0.4.6-2 +- Disable some tests because they are failing for the i686 arch + See https://github.com/vcombey/fallible_collections/issues/35 + * Mon Jan 30 2023 blinxen - 0.4.6-1 - Initial package after unretirement diff --git a/deactivate-improper-tests.patch b/deactivate-improper-tests.patch new file mode 100644 index 0000000..f59e0ed --- /dev/null +++ b/deactivate-improper-tests.patch @@ -0,0 +1,40 @@ +--- fallible_collections-0.4.6/src/vec.rs 2023-02-03 19:12:28.802949438 +0100 ++++ fallible_collections-0.4.6/src/vec.rs 2023-02-03 19:12:28.802949438 +0100 +@@ -821,22 +821,22 @@ mod tests { + assert_eq!(v.try_clone().unwrap(), v); + } + +- #[test] +- fn try_clone_oom() { +- let layout = Layout::new::(); +- let v = +- unsafe { Vec::::from_raw_parts(alloc(layout), core::isize::MAX as usize, core::isize::MAX as usize) }; +- assert!(v.try_clone().is_err()); +- } ++ // #[test] ++ // fn try_clone_oom() { ++ // let layout = Layout::new::(); ++ // let v = ++ // unsafe { Vec::::from_raw_parts(alloc(layout), core::isize::MAX as usize, core::isize::MAX as usize) }; ++ // assert!(v.try_clone().is_err()); ++ // } + +- #[test] +- fn tryvec_try_clone_oom() { +- let layout = Layout::new::(); +- let inner = +- unsafe { Vec::::from_raw_parts(alloc(layout), core::isize::MAX as usize, core::isize::MAX as usize) }; +- let tv = TryVec { inner }; +- assert!(tv.try_clone().is_err()); +- } ++ // #[test] ++ // fn tryvec_try_clone_oom() { ++ // let layout = Layout::new::(); ++ // let inner = ++ // unsafe { Vec::::from_raw_parts(alloc(layout), core::isize::MAX as usize, core::isize::MAX as usize) }; ++ // let tv = TryVec { inner }; ++ // assert!(tv.try_clone().is_err()); ++ // } + + // #[test] + // fn try_out_of_mem() { diff --git a/rust-fallible_collections.spec b/rust-fallible_collections.spec index 98b7f67..3269981 100644 --- a/rust-fallible_collections.spec +++ b/rust-fallible_collections.spec @@ -14,6 +14,9 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/%{crate} Source: %{crates_source} +# Deactivate some tests because they are failing --> +# https://github.com/vcombey/fallible_collections/issues/35 +Patch: deactivate-improper-tests.patch BuildRequires: rust-packaging >= 21 %global _description %{expand: