parent
fdc240b56c
commit
7af0c62613
@ -1,40 +0,0 @@
|
|||||||
--- 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::<u8>();
|
|
||||||
- let v =
|
|
||||||
- unsafe { Vec::<u8>::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::<u8>();
|
|
||||||
+ // let v =
|
|
||||||
+ // unsafe { Vec::<u8>::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::<u8>();
|
|
||||||
- let inner =
|
|
||||||
- unsafe { Vec::<u8>::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::<u8>();
|
|
||||||
+ // let inner =
|
|
||||||
+ // unsafe { Vec::<u8>::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() {
|
|
Loading…
Reference in new issue