File: skip-test-32-bit.patch

package info (click to toggle)
rust-mp4parse 0.17.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
--- rust-mp4parse-0.17.0.orig/src/tests.rs
+++ rust-mp4parse-0.17.0/src/tests.rs
@@ -1341,6 +1341,9 @@ fn read_to_end_() {
 }
 
 #[test]
+//this test seems to assume that an allocation of isize_max will
+//always fail, but that isn't true on many 32-bit systems.
+#[cfg(not(target_pointer_width = "32"))]
 fn read_to_end_oom() {
     let mut src = b"1234567890".take(std::isize::MAX.try_into().expect("isize < u64"));
     assert!(src.read_into_try_vec().is_err());