summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>2025-04-16 23:53:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-20 10:11:16 +0100
commit84913de99d8407d55fc30daa4e790340d94b92cf (patch)
treeb9c045173b4d0262c96f8530ae99e3f09eb97f60
parentf7d2280d04c2efdc0e2561ef5fed742506b0934b (diff)
downloadpoky-84913de99d8407d55fc30daa4e790340d94b92cf.tar.gz
rust: re-enable the unit tests that are ignored
Some unit tests were previously marked as ignored due to failures in earlier versions of Rust. With the upgrade to Rust 1.85.1, these tests are now passing consistently. They've been re-enabled and verified to run successfully on the latest version. (From OE-Core rev: 775108f131412122beb2b844dc5e2a4d47ce3b89) Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rust/files/rust-oe-selftest.patch95
1 files changed, 0 insertions, 95 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 2cca85019c..4a8760a6d4 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -43,77 +43,6 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr
43 fn test_can_print_warnings() { 43 fn test_can_print_warnings() {
44 sess_and_cfg(&["-Awarnings"], |sess, _cfg| { 44 sess_and_cfg(&["-Awarnings"], |sess, _cfg| {
45 assert!(!sess.dcx().can_emit_warnings()); 45 assert!(!sess.dcx().can_emit_warnings());
46diff --git a/library/test/src/stats/tests.rs b/library/test/src/stats/tests.rs
47--- a/library/test/src/stats/tests.rs
48+++ b/library/test/src/stats/tests.rs
49@@ -40,6 +40,7 @@
50 }
51
52 #[test]
53+#[ignore]
54 fn test_min_max_nan() {
55 let xs = &[1.0, 2.0, f64::NAN, 3.0, 4.0];
56 let summary = Summary::new(xs);
57diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/tests.rs
58index 35a5291a347..5f2858d2505 100644
59--- a/library/std/src/io/buffered/tests.rs
60+++ b/library/std/src/io/buffered/tests.rs
61@@ -488,6 +488,7 @@ fn flush(&mut self) -> io::Result<()> {
62 }
63
64 #[test]
65+#[ignore]
66 #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads
67 fn panic_in_write_doesnt_flush_in_drop() {
68 static WRITES: AtomicUsize = AtomicUsize::new(0);
69diff --git a/library/std/src/io/stdio/tests.rs b/library/std/src/io/stdio/tests.rs
70index f89fd27ce6c..79737f5b127 100644
71--- a/library/std/src/io/stdio/tests.rs
72+++ b/library/std/src/io/stdio/tests.rs
73@@ -25,6 +25,7 @@ fn stderrlock_unwind_safe() {
74 fn assert_unwind_safe<T: UnwindSafe + RefUnwindSafe>() {}
75
76 #[test]
77+#[ignore]
78 #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads
79 fn panic_doesnt_poison() {
80 thread::spawn(|| {
81diff --git a/library/std/src/sync/mpsc/sync_tests.rs b/library/std/src/sync/mpsc/sync_tests.rs
82index 945de280f40..1ac7eeabc5c 100644
83--- a/library/std/src/sync/mpsc/sync_tests.rs
84+++ b/library/std/src/sync/mpsc/sync_tests.rs
85@@ -252,6 +252,7 @@ fn oneshot_single_thread_send_port_close() {
86 }
87
88 #[test]
89+#[ignore]
90 fn oneshot_single_thread_recv_chan_close() {
91 // Receiving on a closed chan will panic
92 let res = thread::spawn(move || {
93@@ -347,6 +348,7 @@ fn oneshot_multi_task_recv_then_send() {
94 }
95
96 #[test]
97+#[ignore]
98 fn oneshot_multi_task_recv_then_close() {
99 let (tx, rx) = sync_channel::<Box<i32>>(0);
100 let _t = thread::spawn(move || {
101@@ -371,6 +373,7 @@ fn oneshot_multi_thread_close_stress() {
102 }
103
104 #[test]
105+#[ignore]
106 fn oneshot_multi_thread_send_close_stress() {
107 for _ in 0..stress_factor() {
108 let (tx, rx) = sync_channel::<i32>(0);
109@@ -385,6 +388,7 @@ fn oneshot_multi_thread_send_close_stress() {
110 }
111
112 #[test]
113+#[ignore]
114 fn oneshot_multi_thread_recv_close_stress() {
115 for _ in 0..stress_factor() {
116 let (tx, rx) = sync_channel::<i32>(0);
117diff --git a/library/std/src/sync/mpsc/tests.rs b/library/std/src/sync/mpsc/tests.rs 46diff --git a/library/std/src/sync/mpsc/tests.rs b/library/std/src/sync/mpsc/tests.rs
118index ac1a804cf9c..7c687982324 100644 47index ac1a804cf9c..7c687982324 100644
119--- a/library/std/src/sync/mpsc/tests.rs 48--- a/library/std/src/sync/mpsc/tests.rs
@@ -402,14 +331,6 @@ index 160af8a65d..686f4607bb 100644
402 fn smoke() { 331 fn smoke() {
403 let value = 12u32; 332 let value = 12u32;
404 let reference = &value; 333 let reference = &value;
405@@ -28,6 +29,7 @@ fn smoke() {
406 }
407
408 #[test]
409+#[ignore]
410 fn stable_hash_hashes_as_tuple() {
411 let hash_packed = {
412 let mut hasher = StableHasher::new();
413diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs 334diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
414index 4d342c72cc..9a77f92616 100644 335index 4d342c72cc..9a77f92616 100644
415--- a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs 336--- a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
@@ -422,22 +343,6 @@ index 4d342c72cc..9a77f92616 100644
422 fn smoke() { 343 fn smoke() {
423 let value = 12u32; 344 let value = 12u32;
424 let reference = &value; 345 let reference = &value;
425@@ -28,6 +29,7 @@ fn smoke() {
426 }
427
428 #[test]
429+#[ignore]
430 fn boxed() {
431 let value = 12u32;
432 let boxed = Box::new(value);
433@@ -52,6 +54,7 @@ fn boxed() {
434 }
435
436 #[test]
437+#[ignore]
438 fn arclones() {
439 let value = 12u32;
440 let arc = Arc::new(value);
441diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs 346diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs
442index 9d4f52a092..d425e5f7b7 100644 347index 9d4f52a092..d425e5f7b7 100644
443--- a/library/std/src/thread/local/tests.rs 348--- a/library/std/src/thread/local/tests.rs