Debian Codegraph @

debian/patches/skip-tests-32-bit.patch

raw
1 Index: rust-freetype-0.7.0/src/freetype.rs
2 ===================================================================
3 --- rust-freetype-0.7.0.orig/src/freetype.rs
4 +++ rust-freetype-0.7.0/src/freetype.rs
5 @@ -133,6 +133,7 @@ pub struct FT_MemoryRec_ {
6 pub realloc: FT_Realloc_Func,
7 }
8 #[test]
9 +#[cfg(target_pointer_width="64")]
10 fn bindgen_test_layout_FT_MemoryRec_() {
11 assert_eq!(::std::mem::size_of::<FT_MemoryRec_>() , 32usize , concat ! (
12 "Size of: " , stringify ! ( FT_MemoryRec_ ) ));
13 @@ -195,6 +196,7 @@ pub struct FT_StreamRec_ {
14 pub limit: *mut ::std::os::raw::c_uchar,
15 }
16 #[test]
17 +#[cfg(target_pointer_width="64")]
18 fn bindgen_test_layout_FT_StreamRec_() {
19 assert_eq!(::std::mem::size_of::<FT_StreamRec_>() , 80usize , concat ! (
20 "Size of: " , stringify ! ( FT_StreamRec_ ) ));
21 @@ -263,6 +265,7 @@ pub struct FT_StreamDesc_ {
22 pub bindgen_union_field: u64,
23 }
24 #[test]
25 +#[cfg(target_pointer_width="64")]
26 fn bindgen_test_layout_FT_StreamDesc_() {
27 assert_eq!(::std::mem::size_of::<FT_StreamDesc_>() , 8usize , concat ! (
28 "Size of: " , stringify ! ( FT_StreamDesc_ ) ));
29 @@ -302,6 +305,7 @@ pub struct FT_Vector_ {
30 pub y: FT_Pos,
31 }
32 #[test]
33 +#[cfg(target_pointer_width="64")]
34 fn bindgen_test_layout_FT_Vector_() {
35 assert_eq!(::std::mem::size_of::<FT_Vector_>() , 16usize , concat ! (
36 "Size of: " , stringify ! ( FT_Vector_ ) ));
37 @@ -331,6 +335,7 @@ pub struct FT_BBox_ {
38 pub yMax: FT_Pos,
39 }
40 #[test]
41 +#[cfg(target_pointer_width="64")]
42 fn bindgen_test_layout_FT_BBox_() {
43 assert_eq!(::std::mem::size_of::<FT_BBox_>() , 32usize , concat ! (
44 "Size of: " , stringify ! ( FT_BBox_ ) ));
45 @@ -388,6 +393,7 @@ pub struct FT_Bitmap_ {
46 pub palette: *mut ::std::os::raw::c_void,
47 }
48 #[test]
49 +#[cfg(target_pointer_width="64")]
50 fn bindgen_test_layout_FT_Bitmap_() {
51 assert_eq!(::std::mem::size_of::<FT_Bitmap_>() , 40usize , concat ! (
52 "Size of: " , stringify ! ( FT_Bitmap_ ) ));
53 @@ -449,6 +455,7 @@ pub struct FT_Outline_ {
54 pub flags: ::std::os::raw::c_int,
55 }
56 #[test]
57 +#[cfg(target_pointer_width="64")]
58 fn bindgen_test_layout_FT_Outline_() {
59 assert_eq!(::std::mem::size_of::<FT_Outline_>() , 40usize , concat ! (
60 "Size of: " , stringify ! ( FT_Outline_ ) ));
61 @@ -523,6 +530,7 @@ pub struct FT_Outline_Funcs_ {
62 pub delta: FT_Pos,
63 }
64 #[test]
65 +#[cfg(target_pointer_width="64")]
66 fn bindgen_test_layout_FT_Outline_Funcs_() {
67 assert_eq!(::std::mem::size_of::<FT_Outline_Funcs_>() , 48usize , concat !
68 ( "Size of: " , stringify ! ( FT_Outline_Funcs_ ) ));
69 @@ -643,6 +651,7 @@ pub struct FT_Raster_Params_ {
70 pub clip_box: FT_BBox,
71 }
72 #[test]
73 +#[cfg(target_pointer_width="64")]
74 fn bindgen_test_layout_FT_Raster_Params_() {
75 assert_eq!(::std::mem::size_of::<FT_Raster_Params_>() , 96usize , concat !
76 ( "Size of: " , stringify ! ( FT_Raster_Params_ ) ));
77 @@ -733,6 +742,7 @@ pub struct FT_Raster_Funcs_ {
78 pub raster_done: FT_Raster_DoneFunc,
79 }
80 #[test]
81 +#[cfg(target_pointer_width="64")]
82 fn bindgen_test_layout_FT_Raster_Funcs_() {
83 assert_eq!(::std::mem::size_of::<FT_Raster_Funcs_>() , 48usize , concat !
84 ( "Size of: " , stringify ! ( FT_Raster_Funcs_ ) ));
85 @@ -829,6 +839,7 @@ pub struct FT_Matrix_ {
86 pub yy: FT_Fixed,
87 }
88 #[test]
89 +#[cfg(target_pointer_width="64")]
90 fn bindgen_test_layout_FT_Matrix_() {
91 assert_eq!(::std::mem::size_of::<FT_Matrix_>() , 32usize , concat ! (
92 "Size of: " , stringify ! ( FT_Matrix_ ) ));
93 @@ -866,6 +877,7 @@ pub struct FT_Data_ {
94 pub length: FT_Int,
95 }
96 #[test]
97 +#[cfg(target_pointer_width="64")]
98 fn bindgen_test_layout_FT_Data_() {
99 assert_eq!(::std::mem::size_of::<FT_Data_>() , 16usize , concat ! (
100 "Size of: " , stringify ! ( FT_Data_ ) ));
101 @@ -896,6 +908,7 @@ pub struct FT_Generic_ {
102 pub finalizer: FT_Generic_Finalizer,
103 }
104 #[test]
105 +#[cfg(target_pointer_width="64")]
106 fn bindgen_test_layout_FT_Generic_() {
107 assert_eq!(::std::mem::size_of::<FT_Generic_>() , 16usize , concat ! (
108 "Size of: " , stringify ! ( FT_Generic_ ) ));
109 @@ -924,6 +937,7 @@ pub struct FT_ListNodeRec_ {
110 pub data: *mut ::std::os::raw::c_void,
111 }
112 #[test]
113 +#[cfg(target_pointer_width="64")]
114 fn bindgen_test_layout_FT_ListNodeRec_() {
115 assert_eq!(::std::mem::size_of::<FT_ListNodeRec_>() , 24usize , concat ! (
116 "Size of: " , stringify ! ( FT_ListNodeRec_ ) ));
117 @@ -956,6 +970,7 @@ pub struct FT_ListRec_ {
118 pub tail: FT_ListNode,
119 }
120 #[test]
121 +#[cfg(target_pointer_width="64")]
122 fn bindgen_test_layout_FT_ListRec_() {
123 assert_eq!(::std::mem::size_of::<FT_ListRec_>() , 16usize , concat ! (
124 "Size of: " , stringify ! ( FT_ListRec_ ) ));
125 @@ -1295,6 +1310,7 @@ pub struct FT_Glyph_Metrics_ {
126 pub vertAdvance: FT_Pos,
127 }
128 #[test]
129 +#[cfg(target_pointer_width="64")]
130 fn bindgen_test_layout_FT_Glyph_Metrics_() {
131 assert_eq!(::std::mem::size_of::<FT_Glyph_Metrics_>() , 64usize , concat !
132 ( "Size of: " , stringify ! ( FT_Glyph_Metrics_ ) ));
133 @@ -1355,6 +1371,7 @@ pub struct FT_Bitmap_Size_ {
134 pub y_ppem: FT_Pos,
135 }
136 #[test]
137 +#[cfg(target_pointer_width="64")]
138 fn bindgen_test_layout_FT_Bitmap_Size_() {
139 assert_eq!(::std::mem::size_of::<FT_Bitmap_Size_>() , 32usize , concat ! (
140 "Size of: " , stringify ! ( FT_Bitmap_Size_ ) ));
141 @@ -1450,6 +1467,7 @@ pub struct FT_FaceRec_ {
142 pub internal: FT_Face_Internal,
143 }
144 #[test]
145 +#[cfg(target_pointer_width="64")]
146 fn bindgen_test_layout_FT_FaceRec_() {
147 assert_eq!(::std::mem::size_of::<FT_FaceRec_>() , 248usize , concat ! (
148 "Size of: " , stringify ! ( FT_FaceRec_ ) ));
149 @@ -1624,6 +1642,7 @@ pub struct FT_SizeRec_ {
150 pub internal: FT_Size_Internal,
151 }
152 #[test]
153 +#[cfg(target_pointer_width="64")]
154 fn bindgen_test_layout_FT_SizeRec_() {
155 assert_eq!(::std::mem::size_of::<FT_SizeRec_>() , 88usize , concat ! (
156 "Size of: " , stringify ! ( FT_SizeRec_ ) ));
157 @@ -1681,6 +1700,7 @@ pub struct FT_GlyphSlotRec_ {
158 pub internal: FT_Slot_Internal,
159 }
160 #[test]
161 +#[cfg(target_pointer_width="64")]
162 fn bindgen_test_layout_FT_GlyphSlotRec_() {
163 assert_eq!(::std::mem::size_of::<FT_GlyphSlotRec_>() , 304usize , concat !
164 ( "Size of: " , stringify ! ( FT_GlyphSlotRec_ ) ));
165 @@ -1810,6 +1830,7 @@ pub struct FT_CharMapRec_ {
166 pub encoding_id: FT_UShort,
167 }
168 #[test]
169 +#[cfg(target_pointer_width="64")]
170 fn bindgen_test_layout_FT_CharMapRec_() {
171 assert_eq!(::std::mem::size_of::<FT_CharMapRec_>() , 16usize , concat ! (
172 "Size of: " , stringify ! ( FT_CharMapRec_ ) ));
173 @@ -1896,6 +1917,7 @@ pub struct FT_Size_Metrics_ {
174 pub max_advance: FT_Pos,
175 }
176 #[test]
177 +#[cfg(target_pointer_width="64")]
178 fn bindgen_test_layout_FT_Size_Metrics_() {
179 assert_eq!(::std::mem::size_of::<FT_Size_Metrics_>() , 56usize , concat !
180 ( "Size of: " , stringify ! ( FT_Size_Metrics_ ) ));
181 @@ -1973,6 +1995,7 @@ pub struct FT_Parameter_ {
182 pub data: FT_Pointer,
183 }
184 #[test]
185 +#[cfg(target_pointer_width="64")]
186 fn bindgen_test_layout_FT_Parameter_() {
187 assert_eq!(::std::mem::size_of::<FT_Parameter_>() , 16usize , concat ! (
188 "Size of: " , stringify ! ( FT_Parameter_ ) ));
189 @@ -2006,6 +2029,7 @@ pub struct FT_Open_Args_ {
190 pub params: *mut FT_Parameter,
191 }
192 #[test]
193 +#[cfg(target_pointer_width="64")]
194 fn bindgen_test_layout_FT_Open_Args_() {
195 assert_eq!(::std::mem::size_of::<FT_Open_Args_>() , 64usize , concat ! (
196 "Size of: " , stringify ! ( FT_Open_Args_ ) ));
197 @@ -2109,6 +2133,7 @@ pub struct FT_Size_RequestRec_ {
198 pub vertResolution: FT_UInt,
199 }
200 #[test]
201 +#[cfg(target_pointer_width="64")]
202 fn bindgen_test_layout_FT_Size_RequestRec_() {
203 assert_eq!(::std::mem::size_of::<FT_Size_RequestRec_>() , 32usize , concat
204 ! ( "Size of: " , stringify ! ( FT_Size_RequestRec_ ) ));
205 @@ -2377,6 +2402,7 @@ pub struct FT_Module_Class_ {
206 pub get_interface: FT_Module_Requester,
207 }
208 #[test]
209 +#[cfg(target_pointer_width="64")]
210 fn bindgen_test_layout_FT_Module_Class_() {
211 assert_eq!(::std::mem::size_of::<FT_Module_Class_>() , 72usize , concat !
212 ( "Size of: " , stringify ! ( FT_Module_Class_ ) ));