diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files/rust-oe-selftest.patch')
-rw-r--r-- | meta/recipes-devtools/rust/files/rust-oe-selftest.patch | 147 |
1 files changed, 84 insertions, 63 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index 49d85072cb..b7ef806e65 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch | |||
@@ -47,61 +47,85 @@ diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs | |||
47 | index 1a9d3d3f12f..0a9cfc48806 100644 | 47 | index 1a9d3d3f12f..0a9cfc48806 100644 |
48 | --- a/library/std/tests/sync/rwlock.rs | 48 | --- a/library/std/tests/sync/rwlock.rs |
49 | +++ b/library/std/tests/sync/rwlock.rs | 49 | +++ b/library/std/tests/sync/rwlock.rs |
50 | @@ -47,6 +47,7 @@ fn frob() { | 50 | @@ -74,6 +74,7 @@ |
51 | } | 51 | |
52 | |||
53 | #[test] | 52 | #[test] |
53 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
54 | +#[ignore] | 54 | +#[ignore] |
55 | fn test_rw_arc_poison_wr() { | 55 | fn test_rw_arc_poison_wr() { |
56 | let arc = Arc::new(RwLock::new(1)); | 56 | let arc = Arc::new(RwLock::new(1)); |
57 | let arc2 = arc.clone(); | 57 | let arc2 = arc.clone(); |
58 | @@ -72,6 +73,7 @@ fn test_rw_arc_poison_mapped_w_r() { | 58 | @@ -87,6 +88,7 @@ |
59 | } | 59 | |
60 | 60 | #[test] | |
61 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
62 | +#[ignore] | ||
63 | fn test_rw_arc_poison_mapped_w_r() { | ||
64 | let arc = Arc::new(RwLock::new(1)); | ||
65 | let arc2 = arc.clone(); | ||
66 | @@ -101,6 +103,7 @@ | ||
67 | |||
61 | #[test] | 68 | #[test] |
69 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
62 | +#[ignore] | 70 | +#[ignore] |
63 | fn test_rw_arc_poison_ww() { | 71 | fn test_rw_arc_poison_ww() { |
64 | let arc = Arc::new(RwLock::new(1)); | 72 | let arc = Arc::new(RwLock::new(1)); |
65 | assert!(!arc.is_poisoned()); | 73 | assert!(!arc.is_poisoned()); |
66 | @@ -100,6 +102,7 @@ fn test_rw_arc_poison_mapped_w_w() { | 74 | @@ -115,6 +118,7 @@ |
67 | } | 75 | } |
68 | 76 | ||
77 | #[test] | ||
78 | +#[ignore] | ||
79 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
80 | fn test_rw_arc_poison_mapped_w_w() { | ||
81 | let arc = Arc::new(RwLock::new(1)); | ||
82 | @@ -131,6 +135,7 @@ | ||
83 | |||
69 | #[test] | 84 | #[test] |
85 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
70 | +#[ignore] | 86 | +#[ignore] |
71 | fn test_rw_arc_no_poison_rr() { | 87 | fn test_rw_arc_no_poison_rr() { |
72 | let arc = Arc::new(RwLock::new(1)); | 88 | let arc = Arc::new(RwLock::new(1)); |
73 | let arc2 = arc.clone(); | 89 | let arc2 = arc.clone(); |
74 | @@ -127,6 +130,7 @@ fn test_rw_arc_no_poison_mapped_r_r() { | 90 | @@ -160,6 +165,7 @@ |
75 | } | 91 | |
76 | |||
77 | #[test] | 92 | #[test] |
93 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
78 | +#[ignore] | 94 | +#[ignore] |
79 | fn test_rw_arc_no_poison_rw() { | 95 | fn test_rw_arc_no_poison_rw() { |
80 | let arc = Arc::new(RwLock::new(1)); | 96 | let arc = Arc::new(RwLock::new(1)); |
81 | let arc2 = arc.clone(); | 97 | let arc2 = arc.clone(); |
82 | @@ -192,6 +196,7 @@ fn test_rw_arc() { | 98 | @@ -227,6 +233,7 @@ |
83 | } | 99 | |
84 | |||
85 | #[test] | 100 | #[test] |
101 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
86 | +#[ignore] | 102 | +#[ignore] |
87 | fn test_rw_arc_access_in_unwind() { | 103 | fn test_rw_arc_access_in_unwind() { |
88 | let arc = Arc::new(RwLock::new(1)); | 104 | let arc = Arc::new(RwLock::new(1)); |
89 | let arc2 = arc.clone(); | 105 | let arc2 = arc.clone(); |
90 | @@ -275,6 +280,7 @@ fn drop(&mut self) { | 106 | @@ -326,6 +333,7 @@ |
91 | } | 107 | |
92 | |||
93 | #[test] | 108 | #[test] |
109 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
94 | +#[ignore] | 110 | +#[ignore] |
95 | fn test_into_inner_poison() { | 111 | fn test_into_inner_poison() { |
96 | let m = new_poisoned_rwlock(NonCopy(10)); | 112 | let m = new_poisoned_rwlock(NonCopy(10)); |
97 | 113 | ||
98 | @@ -299,6 +305,7 @@ fn test_get_mut() { | 114 | @@ -362,6 +370,7 @@ |
99 | } | 115 | |
100 | |||
101 | #[test] | 116 | #[test] |
117 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
102 | +#[ignore] | 118 | +#[ignore] |
103 | fn test_get_mut_poison() { | 119 | fn test_get_mut_poison() { |
104 | let mut m = new_poisoned_rwlock(NonCopy(10)); | 120 | let mut m = new_poisoned_rwlock(NonCopy(10)); |
121 | |||
122 | @@ -567,6 +576,7 @@ | ||
123 | |||
124 | #[test] | ||
125 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
126 | +#[ignore] | ||
127 | fn panic_while_mapping_write_unlocked_poison() { | ||
128 | let lock = RwLock::new(()); | ||
105 | 129 | ||
106 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs | 130 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs |
107 | --- a/library/test/src/tests.rs | 131 | --- a/library/test/src/tests.rs |
@@ -117,52 +141,22 @@ diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs | |||
117 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs | 141 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs |
118 | --- a/library/std/tests/sync/mutex.rs | 142 | --- a/library/std/tests/sync/mutex.rs |
119 | +++ b/library/std/tests/sync/mutex.rs | 143 | +++ b/library/std/tests/sync/mutex.rs |
120 | @@ -193,6 +193,7 @@ | 144 | @@ -312,6 +312,7 @@ |
121 | } | 145 | |
122 | |||
123 | #[test] | 146 | #[test] |
147 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
124 | +#[ignore] | 148 | +#[ignore] |
125 | fn test_mutex_arc_poison_mapped() { | 149 | fn test_mutex_arc_poison_mapped() { |
126 | let arc = Arc::new(Mutex::new(1)); | 150 | let arc = Arc::new(Mutex::new(1)); |
127 | assert!(!arc.is_poisoned()); | 151 | assert!(!arc.is_poisoned()); |
128 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs | 152 | @@ -391,6 +392,7 @@ |
129 | --- a/library/std/tests/sync/mutex.rs | 153 | |
130 | +++ b/library/std/tests/sync/mutex.rs | ||
131 | @@ -272,6 +272,7 @@ | ||
132 | } | ||
133 | |||
134 | #[test] | 154 | #[test] |
155 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
135 | +#[ignore] | 156 | +#[ignore] |
136 | fn panic_while_mapping_unlocked_poison() { | 157 | fn panic_while_mapping_unlocked_poison() { |
137 | let lock = Mutex::new(()); | 158 | let lock = Mutex::new(()); |
138 | 159 | ||
139 | diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/tests/sync/rwlock.rs | ||
140 | --- a/library/std/tests/sync/rwlock.rs | ||
141 | +++ b/library/std/tests/sync/rwlock.rs | ||
142 | @@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() { | ||
143 | } | ||
144 | |||
145 | #[test] | ||
146 | +#[ignore] | ||
147 | fn test_rw_arc_poison_mapped_w_r() { | ||
148 | let arc = Arc::new(RwLock::new(1)); | ||
149 | let arc2 = arc.clone(); | ||
150 | @@ -86,6 +87,7 @@ fn test_rw_arc_poison_ww() { | ||
151 | } | ||
152 | |||
153 | #[test] | ||
154 | +#[ignore] | ||
155 | fn test_rw_arc_poison_mapped_w_w() { | ||
156 | let arc = Arc::new(RwLock::new(1)); | ||
157 | let arc2 = arc.clone(); | ||
158 | @@ -431,6 +433,7 @@ fn panic_while_mapping_read_unlocked_no_poison() { | ||
159 | } | ||
160 | |||
161 | #[test] | ||
162 | +#[ignore] | ||
163 | fn panic_while_mapping_write_unlocked_poison() { | ||
164 | let lock = RwLock::new(()); | ||
165 | |||
166 | diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs | 160 | diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs |
167 | index 3807cd5d76c..018c5c04456 100644 | 161 | index 3807cd5d76c..018c5c04456 100644 |
168 | --- a/library/coretests/benches/num/int_log/mod.rs | 162 | --- a/library/coretests/benches/num/int_log/mod.rs |
@@ -199,10 +193,10 @@ index 9d4f52a092..d425e5f7b7 100644 | |||
199 | fn thread_current_in_dtor() { | 193 | fn thread_current_in_dtor() { |
200 | // Go through one round of TLS destruction first. | 194 | // Go through one round of TLS destruction first. |
201 | struct Defer; | 195 | struct Defer; |
202 | diff --git a/library/alloc/tests/sort/tests.rs b/library/alloc/tests/sort/tests.rs | 196 | diff --git a/library/alloctests/tests/sort/tests.rs b/library/alloctests/tests/sort/tests.rs |
203 | index 14e6013f96..b670f27ab4 100644 | 197 | index 14e6013f96..b670f27ab4 100644 |
204 | --- a/library/alloc/tests/sort/tests.rs | 198 | --- a/library/alloctests/tests/sort/tests.rs |
205 | +++ b/library/alloc/tests/sort/tests.rs | 199 | +++ b/library/alloctests/tests/sort/tests.rs |
206 | @@ -915,12 +915,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( | 200 | @@ -915,12 +915,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( |
207 | macro_rules! instantiate_sort_test_inner { | 201 | macro_rules! instantiate_sort_test_inner { |
208 | ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { | 202 | ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { |
@@ -234,10 +228,10 @@ diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-m | |||
234 | index 5b8e5ff4f4a..e558fbd7bd7 100644 | 228 | index 5b8e5ff4f4a..e558fbd7bd7 100644 |
235 | --- a/tests/assembly/dwarf-mixed-versions-lto.rs | 229 | --- a/tests/assembly/dwarf-mixed-versions-lto.rs |
236 | +++ b/tests/assembly/dwarf-mixed-versions-lto.rs | 230 | +++ b/tests/assembly/dwarf-mixed-versions-lto.rs |
237 | @@ -1,6 +1,11 @@ | 231 | @@ -2,6 +2,11 @@ |
238 | // This test ensures that if LTO occurs between crates with different DWARF versions, we | ||
239 | // will choose the highest DWARF version for the final binary. This matches Clang's behavior. | 232 | // will choose the highest DWARF version for the final binary. This matches Clang's behavior. |
240 | 233 | // Note: `.2byte` directive is used on MIPS. | |
234 | |||
241 | +//@ only-x86 | 235 | +//@ only-x86 |
242 | +//@ only-x86_64 | 236 | +//@ only-x86_64 |
243 | +//@ only-arm | 237 | +//@ only-arm |
@@ -259,3 +253,30 @@ index 0e712bc3a4e..93965d990d0 100644 | |||
259 | //@ revisions: OPT2 OPT3 | 253 | //@ revisions: OPT2 OPT3 |
260 | //@[OPT2] compile-flags: -Copt-level=2 | 254 | //@[OPT2] compile-flags: -Copt-level=2 |
261 | //@[OPT3] compile-flags: -C opt-level=3 | 255 | //@[OPT3] compile-flags: -C opt-level=3 |
256 | diff --git a/tests/codegen/uninhabited-transparent-return-abi.rs b/tests/codegen/uninhabited-transparent-return-abi.rs | ||
257 | index face1577c3f..d69e5e34a7b 100644 | ||
258 | --- a/tests/codegen/uninhabited-transparent-return-abi.rs | ||
259 | +++ b/tests/codegen/uninhabited-transparent-return-abi.rs | ||
260 | @@ -1,4 +1,8 @@ | ||
261 | //@ compile-flags: -Copt-level=3 | ||
262 | +//@ only-x86 | ||
263 | +//@ only-x86_64 | ||
264 | +//@ only-arm | ||
265 | +//@ only-aarch64 | ||
266 | |||
267 | // See https://github.com/rust-lang/rust/issues/135802 | ||
268 | |||
269 | diff --git a/tests/ui/abi/rust-cold-works-with-rustic-args.rs b/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
270 | index 57027364699..3faa7ea035e 100644 | ||
271 | --- a/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
272 | +++ b/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
273 | @@ -1,5 +1,9 @@ | ||
274 | //@build-pass | ||
275 | //@compile-flags: -Clink-dead-code=true --crate-type lib | ||
276 | +//@ only-x86 | ||
277 | +//@ only-x86_64 | ||
278 | +//@ only-arm | ||
279 | +//@ only-aarch64 | ||
280 | // We used to not handle all "rustic" ABIs in a (relatively) uniform way, | ||
281 | // so we failed to fix up arguments for actually passing through the ABI... | ||
282 | #![feature(rust_cold_cc)] | ||