summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorYash Shinde <Yash.Shinde@windriver.com>2024-08-29 01:33:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-29 21:58:19 +0100
commit94a6eeda53f3040cd311085a72dd4d8e9fba0fac (patch)
tree74b63ee35f5ac21ce75f49f750741871f9b1d2d8 /meta/recipes-devtools
parent9da30a87536c5e3e5778dd6c287a23a9d568cede (diff)
downloadpoky-94a6eeda53f3040cd311085a72dd4d8e9fba0fac.tar.gz
rust: Oe-selftest changes for rust v1.79
* Sort the exclude list in alphabetical order. * Add some of the upsupported/failing tests to the exclude list and ignore the failing unit tests. * Remove duplicated tests from the exclude list. * Testing summary Target PASS SKIPPED ARM 17241 599 ARM64 17279 561 MIPS64 17228 612 PPC 17194 629 X86 17257 583 X86-64 17416 424 (From OE-Core rev: 61ec0f0f78d9db4c3fc02365713d5fd77b78a7ea) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/files/rust-oe-selftest.patch69
1 files changed, 40 insertions, 29 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index a69c1e5237..01c3634d9f 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -8,7 +8,7 @@ Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
8diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs 8diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs
9--- a/compiler/rustc_errors/src/markdown/tests/term.rs 9--- a/compiler/rustc_errors/src/markdown/tests/term.rs
10+++ b/compiler/rustc_errors/src/markdown/tests/term.rs 10+++ b/compiler/rustc_errors/src/markdown/tests/term.rs
11@@ -60,6 +60,7 @@ 11@@ -61,6 +61,7 @@ fn test_wrapping_write() {
12 } 12 }
13 13
14 #[test] 14 #[test]
@@ -19,31 +19,30 @@ diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_e
19diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs 19diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
20--- a/compiler/rustc_interface/src/tests.rs 20--- a/compiler/rustc_interface/src/tests.rs
21+++ b/compiler/rustc_interface/src/tests.rs 21+++ b/compiler/rustc_interface/src/tests.rs
22@@ -116,6 +116,7 @@ 22@@ -137,6 +137,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) {
23 23
24 // When the user supplies --test we should implicitly supply --cfg test 24 // When the user supplies --test we should implicitly supply --cfg test
25 #[test] 25 #[test]
26+#[ignore] 26+#[ignore]
27 fn test_switch_implies_cfg_test() { 27 fn test_switch_implies_cfg_test() {
28 rustc_span::create_default_session_globals_then(|| { 28 sess_and_cfg(&["--test"], |_sess, cfg| {
29 let matches = optgroups().parse(&["--test".to_string()]).unwrap(); 29 assert!(cfg.contains(&(sym::test, None)));
30@@ -127,6 +128,7 @@ 30@@ -145,6 +146,7 @@ fn test_switch_implies_cfg_test() {
31 31
32 // When the user supplies --test and --cfg test, don't implicitly add another --cfg test 32 // When the user supplies --test and --cfg test, don't implicitly add another --cfg test
33 #[test] 33 #[test]
34+#[ignore] 34+#[ignore]
35 fn test_switch_implies_cfg_test_unless_cfg_test() { 35 fn test_switch_implies_cfg_test_unless_cfg_test() {
36 rustc_span::create_default_session_globals_then(|| { 36 sess_and_cfg(&["--test", "--cfg=test"], |_sess, cfg| {
37 let matches = optgroups().parse(&["--test".to_string(), "--cfg=test".to_string()]).unwrap(); 37 let mut test_items = cfg.iter().filter(|&&(name, _)| name == sym::test);
38@@ -139,6 +141,7 @@ 38@@ -154,6 +156,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() {
39 } 39 }
40 40
41 #[test] 41 #[test]
42+#[ignore] 42+#[ignore]
43 fn test_can_print_warnings() { 43 fn test_can_print_warnings() {
44 rustc_span::create_default_session_globals_then(|| { 44 sess_and_cfg(&["-Awarnings"], |sess, _cfg| {
45 let matches = optgroups().parse(&["-Awarnings".to_string()]).unwrap(); 45 assert!(!sess.dcx().can_emit_warnings());
46
47diff --git a/library/test/src/stats/tests.rs b/library/test/src/stats/tests.rs 46diff --git a/library/test/src/stats/tests.rs b/library/test/src/stats/tests.rs
48--- a/library/test/src/stats/tests.rs 47--- a/library/test/src/stats/tests.rs
49+++ b/library/test/src/stats/tests.rs 48+++ b/library/test/src/stats/tests.rs
@@ -59,7 +58,7 @@ diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/
59index 35a5291a347..5f2858d2505 100644 58index 35a5291a347..5f2858d2505 100644
60--- a/library/std/src/io/buffered/tests.rs 59--- a/library/std/src/io/buffered/tests.rs
61+++ b/library/std/src/io/buffered/tests.rs 60+++ b/library/std/src/io/buffered/tests.rs
62@@ -485,6 +485,7 @@ fn flush(&mut self) -> io::Result<()> { 61@@ -488,6 +488,7 @@ fn flush(&mut self) -> io::Result<()> {
63 } 62 }
64 63
65 #[test] 64 #[test]
@@ -187,7 +186,7 @@ index 1786a3c09ff..9dcead7092b 100644
187 fn test_mutex_arc_poison() { 186 fn test_mutex_arc_poison() {
188 let arc = Arc::new(Mutex::new(1)); 187 let arc = Arc::new(Mutex::new(1));
189 assert!(!arc.is_poisoned()); 188 assert!(!arc.is_poisoned());
190@@ -205,6 +209,7 @@ fn test_mutex_arc_nested() { 189@@ -220,6 +220,7 @@ fn test_mutex_arc_nested() {
191 } 190 }
192 191
193 #[test] 192 #[test]
@@ -199,7 +198,7 @@ diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/rwlock/
199index 1a9d3d3f12f..0a9cfc48806 100644 198index 1a9d3d3f12f..0a9cfc48806 100644
200--- a/library/std/src/sync/rwlock/tests.rs 199--- a/library/std/src/sync/rwlock/tests.rs
201+++ b/library/std/src/sync/rwlock/tests.rs 200+++ b/library/std/src/sync/rwlock/tests.rs
202@@ -44,6 +44,7 @@ fn frob() { 201@@ -47,6 +47,7 @@ fn frob() {
203 } 202 }
204 203
205 #[test] 204 #[test]
@@ -207,7 +206,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
207 fn test_rw_arc_poison_wr() { 206 fn test_rw_arc_poison_wr() {
208 let arc = Arc::new(RwLock::new(1)); 207 let arc = Arc::new(RwLock::new(1));
209 let arc2 = arc.clone(); 208 let arc2 = arc.clone();
210@@ -56,6 +57,7 @@ fn test_rw_arc_poison_wr() { 209@@ -72,6 +73,7 @@ fn test_rw_arc_poison_mapped_w_r() {
211 } 210 }
212 211
213 #[test] 212 #[test]
@@ -215,7 +214,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
215 fn test_rw_arc_poison_ww() { 214 fn test_rw_arc_poison_ww() {
216 let arc = Arc::new(RwLock::new(1)); 215 let arc = Arc::new(RwLock::new(1));
217 assert!(!arc.is_poisoned()); 216 assert!(!arc.is_poisoned());
218@@ -70,6 +72,7 @@ fn test_rw_arc_poison_ww() { 217@@ -100,6 +102,7 @@ fn test_rw_arc_poison_mapped_w_w() {
219 } 218 }
220 219
221 #[test] 220 #[test]
@@ -223,7 +222,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
223 fn test_rw_arc_no_poison_rr() { 222 fn test_rw_arc_no_poison_rr() {
224 let arc = Arc::new(RwLock::new(1)); 223 let arc = Arc::new(RwLock::new(1));
225 let arc2 = arc.clone(); 224 let arc2 = arc.clone();
226@@ -127,6 +127,7 @@ 225@@ -127,6 +130,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
227 } 226 }
228 227
229 #[test] 228 #[test]
@@ -231,7 +230,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
231 fn test_rw_arc_no_poison_rw() { 230 fn test_rw_arc_no_poison_rw() {
232 let arc = Arc::new(RwLock::new(1)); 231 let arc = Arc::new(RwLock::new(1));
233 let arc2 = arc.clone(); 232 let arc2 = arc.clone();
234@@ -133,6 +137,7 @@ fn test_rw_arc() { 233@@ -192,6 +196,7 @@ fn test_rw_arc() {
235 } 234 }
236 235
237 #[test] 236 #[test]
@@ -239,7 +238,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
239 fn test_rw_arc_access_in_unwind() { 238 fn test_rw_arc_access_in_unwind() {
240 let arc = Arc::new(RwLock::new(1)); 239 let arc = Arc::new(RwLock::new(1));
241 let arc2 = arc.clone(); 240 let arc2 = arc.clone();
242@@ -206,6 +211,7 @@ fn drop(&mut self) { 241@@ -275,6 +280,7 @@ fn drop(&mut self) {
243 } 242 }
244 243
245 #[test] 244 #[test]
@@ -247,7 +246,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644
247 fn test_into_inner_poison() { 246 fn test_into_inner_poison() {
248 let m = Arc::new(RwLock::new(NonCopy(10))); 247 let m = Arc::new(RwLock::new(NonCopy(10)));
249 let m2 = m.clone(); 248 let m2 = m.clone();
250@@ -230,6 +236,7 @@ fn test_get_mut() { 249@@ -299,6 +305,7 @@ fn test_get_mut() {
251 } 250 }
252 251
253 #[test] 252 #[test]
@@ -279,7 +278,7 @@ diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs
279index 5d6b9e94ee9..a5aacb2eb87 100644 278index 5d6b9e94ee9..a5aacb2eb87 100644
280--- a/library/std/src/thread/tests.rs 279--- a/library/std/src/thread/tests.rs
281+++ b/library/std/src/thread/tests.rs 280+++ b/library/std/src/thread/tests.rs
282@@ -115,6 +115,7 @@ fn test_is_finished() { 281@@ -116,6 +116,7 @@ fn test_is_finished() {
283 } 282 }
284 283
285 #[test] 284 #[test]
@@ -287,7 +286,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644
287 fn test_join_panic() { 286 fn test_join_panic() {
288 match thread::spawn(move || panic!()).join() { 287 match thread::spawn(move || panic!()).join() {
289 result::Result::Err(_) => (), 288 result::Result::Err(_) => (),
290@@ -217,6 +218,7 @@ fn test_simple_newsched_spawn() { 289@@ -218,6 +219,7 @@ fn test_simple_newsched_spawn() {
291 } 290 }
292 291
293 #[test] 292 #[test]
@@ -295,7 +294,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644
295 fn test_try_panic_message_string_literal() { 294 fn test_try_panic_message_string_literal() {
296 match thread::spawn(move || { 295 match thread::spawn(move || {
297 panic!("static string"); 296 panic!("static string");
298@@ -233,6 +235,7 @@ fn test_try_panic_message_string_literal() { 297@@ -234,6 +236,7 @@ fn test_try_panic_message_string_literal() {
299 } 298 }
300 299
301 #[test] 300 #[test]
@@ -303,7 +302,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644
303 fn test_try_panic_any_message_owned_str() { 302 fn test_try_panic_any_message_owned_str() {
304 match thread::spawn(move || { 303 match thread::spawn(move || {
305 panic_any("owned string".to_string()); 304 panic_any("owned string".to_string());
306@@ -249,6 +252,7 @@ fn test_try_panic_any_message_owned_str() { 305@@ -250,6 +253,7 @@ fn test_try_panic_any_message_owned_str() {
307 } 306 }
308 307
309 #[test] 308 #[test]
@@ -311,7 +310,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644
311 fn test_try_panic_any_message_any() { 310 fn test_try_panic_any_message_any() {
312 match thread::spawn(move || { 311 match thread::spawn(move || {
313 panic_any(Box::new(413u16) as Box<dyn Any + Send>); 312 panic_any(Box::new(413u16) as Box<dyn Any + Send>);
314@@ -267,6 +271,7 @@ fn test_try_panic_any_message_any() { 313@@ -268,6 +272,7 @@ fn test_try_panic_any_message_any() {
315 } 314 }
316 315
317 #[test] 316 #[test]
@@ -363,10 +362,10 @@ diff --git a/library/std/src/sync/mutex/tests.rs b/library/std/src/sync/mutex/te
363 fn panic_while_mapping_unlocked_poison() { 362 fn panic_while_mapping_unlocked_poison() {
364 let lock = Mutex::new(()); 363 let lock = Mutex::new(());
365 364
366diff --git a/ 365diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/rwlock/tests.rs
367--- a/library/std/src/sync/rwlock/tests.rs 366--- a/library/std/src/sync/rwlock/tests.rs
368+++ b/library/std/src/sync/rwlock/tests.rs 367+++ b/library/std/src/sync/rwlock/tests.rs
369@@ -60,6 +60,7 @@ 368@@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() {
370 } 369 }
371 370
372 #[test] 371 #[test]
@@ -374,7 +373,7 @@ diff --git a/
374 fn test_rw_arc_poison_mapped_w_r() { 373 fn test_rw_arc_poison_mapped_w_r() {
375 let arc = Arc::new(RwLock::new(1)); 374 let arc = Arc::new(RwLock::new(1));
376 let arc2 = arc.clone(); 375 let arc2 = arc.clone();
377@@ -88,6 +89,7 @@ 376@@ -86,6 +87,7 @@ fn test_rw_arc_poison_ww() {
378 } 377 }
379 378
380 #[test] 379 #[test]
@@ -382,7 +381,7 @@ diff --git a/
382 fn test_rw_arc_poison_mapped_w_w() { 381 fn test_rw_arc_poison_mapped_w_w() {
383 let arc = Arc::new(RwLock::new(1)); 382 let arc = Arc::new(RwLock::new(1));
384 let arc2 = arc.clone(); 383 let arc2 = arc.clone();
385@@ -438,6 +440,7 @@ 384@@ -431,6 +433,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
386 } 385 }
387 386
388 #[test] 387 #[test]
@@ -390,3 +389,15 @@ diff --git a/
390 fn panic_while_mapping_write_unlocked_poison() { 389 fn panic_while_mapping_write_unlocked_poison() {
391 let lock = RwLock::new(()); 390 let lock = RwLock::new(());
392 391
392diff --git a/library/core/benches/num/int_log/mod.rs b/library/core/benches/num/int_log/mod.rs
393index 3807cd5d76c..018c5c04456 100644
394--- a/library/core/benches/num/int_log/mod.rs
395+++ b/library/core/benches/num/int_log/mod.rs
396@@ -98,6 +98,7 @@ fn $random_small(bench: &mut Bencher) {
397 }
398
399 #[bench]
400+ #[ignore]
401 fn $geometric(bench: &mut Bencher) {
402 let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65];
403 let base_and_numbers: Vec<($t, Vec<$t>)> = bases