File: fix-test-32-bit.patch

package info (click to toggle)
rust-smallvec 1.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 312 kB
  • sloc: sh: 12; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: rust-smallvec-1.11.1/src/tests.rs
===================================================================
--- rust-smallvec-1.11.1.orig/src/tests.rs
+++ rust-smallvec-1.11.1/src/tests.rs
@@ -987,7 +987,7 @@ fn test_clone_from() {
 #[test]
 fn test_size() {
     use core::mem::size_of;
-    assert_eq!(24, size_of::<SmallVec<[u8; 8]>>());
+    assert!(24 >= size_of::<SmallVec<[u8; 8]>>(), "size_of::<SmallVec<[u8; 8]>>() = {} which is greater than 24",size_of::<SmallVec<[u8; 8]>>());
 }
 
 #[cfg(feature = "drain_filter")]