summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>2025-04-20 21:03:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-23 09:47:42 +0100
commitba50aac23cebd9605c064a0d15cd4ce1bd3e6b2c (patch)
tree3c311a660eede9516f1a2503783aa9487b37786c
parent147011a7f6fc515f0f90db864f5b8fc94ad3f731 (diff)
downloadpoky-ba50aac23cebd9605c064a0d15cd4ce1bd3e6b2c.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: 65c207fb034848f9ef0de8cf8725c5eded363aca) Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rust/files/rust-oe-selftest.patch100
1 files changed, 0 insertions, 100 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 4a8760a6d4..909bc971db 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -43,86 +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/std/src/sync/mpsc/tests.rs b/library/std/src/sync/mpsc/tests.rs
47index ac1a804cf9c..7c687982324 100644
48--- a/library/std/src/sync/mpsc/tests.rs
49+++ b/library/std/src/sync/mpsc/tests.rs
50@@ -233,6 +233,7 @@ fn oneshot_single_thread_send_port_close() {
51 }
52
53 #[test]
54+#[ignore]
55 fn oneshot_single_thread_recv_chan_close() {
56 // Receiving on a closed chan will panic
57 let res = thread::spawn(move || {
58@@ -313,6 +314,7 @@ fn oneshot_multi_task_recv_then_send() {
59 }
60
61 #[test]
62+#[ignore]
63 fn oneshot_multi_task_recv_then_close() {
64 let (tx, rx) = channel::<Box<i32>>();
65 let _t = thread::spawn(move || {
66@@ -337,6 +339,7 @@ fn oneshot_multi_thread_close_stress() {
67 }
68
69 #[test]
70+#[ignore]
71 fn oneshot_multi_thread_send_close_stress() {
72 for _ in 0..stress_factor() {
73 let (tx, rx) = channel::<i32>();
74@@ -351,6 +354,7 @@ fn oneshot_multi_thread_send_close_stress() {
75 }
76
77 #[test]
78+#[ignore]
79 fn oneshot_multi_thread_recv_close_stress() {
80 for _ in 0..stress_factor() {
81 let (tx, rx) = channel::<i32>();
82diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/poison/mutex/tests.rs
83index 1786a3c09ff..9dcead7092b 100644
84--- a/library/std/src/sync/poison/mutex/tests.rs
85+++ b/library/std/src/sync/poison/mutex/tests.rs
86@@ -82,6 +82,7 @@ fn drop(&mut self) {
87 }
88
89 #[test]
90+#[ignore]
91 fn test_into_inner_poison() {
92 let m = new_poisoned_mutex(NonCopy(10));
93
94@@ -106,6 +107,7 @@ fn test_get_mut() {
95 }
96
97 #[test]
98+#[ignore]
99 fn test_get_mut_poison() {
100 let mut m = new_poisoned_mutex(NonCopy(10));
101
102@@ -146,6 +148,7 @@ fn test_mutex_arc_condvar() {
103 }
104
105 #[test]
106+#[ignore]
107 fn test_arc_condvar_poison() {
108 let packet = Packet(Arc::new((Mutex::new(1), Condvar::new())));
109 let packet2 = Packet(packet.0.clone());
110@@ -175,6 +178,7 @@ fn test_arc_condvar_poison() {
111 }
112
113 #[test]
114+#[ignore]
115 fn test_mutex_arc_poison() {
116 let arc = Arc::new(Mutex::new(1));
117 assert!(!arc.is_poisoned());
118@@ -220,6 +220,7 @@ fn test_mutex_arc_nested() {
119 }
120
121 #[test]
122+#[ignore]
123 fn test_mutex_arc_access_in_unwind() {
124 let arc = Arc::new(Mutex::new(1));
125 let arc2 = arc.clone();
126diff --git a/library/std/src/sync/poison/rwlock/tests.rs b/library/std/src/sync/poison/rwlock/tests.rs 46diff --git a/library/std/src/sync/poison/rwlock/tests.rs b/library/std/src/sync/poison/rwlock/tests.rs
127index 1a9d3d3f12f..0a9cfc48806 100644 47index 1a9d3d3f12f..0a9cfc48806 100644
128--- a/library/std/src/sync/poison/rwlock/tests.rs 48--- a/library/std/src/sync/poison/rwlock/tests.rs
@@ -183,26 +103,6 @@ index 1a9d3d3f12f..0a9cfc48806 100644
183 fn test_get_mut_poison() { 103 fn test_get_mut_poison() {
184 let mut m = new_poisoned_rwlock(NonCopy(10)); 104 let mut m = new_poisoned_rwlock(NonCopy(10));
185 105
186diff --git a/library/std/src/sys/pal/unix/process/process_unix/tests.rs b/library/std/src/sys/pal/unix/process/process_unix/tests.rs
187index 0a6c6ec19fc..bec257bc630 100644
188--- a/library/std/src/sys/pal/unix/process/process_unix/tests.rs
189+++ b/library/std/src/sys/pal/unix/process/process_unix/tests.rs
190@@ -6,6 +6,7 @@
191 // safety etc., are tested in tests/ui/process/process-panic-after-fork.rs
192
193 #[test]
194+#[ignore]
195 fn exitstatus_display_tests() {
196 // In practice this is the same on every Unix.
197 // If some weird platform turns out to be different, and this test fails, use #[cfg].
198@@ -37,6 +38,7 @@
199 }
200
201 #[test]
202+#[ignore]
203 #[cfg_attr(target_os = "emscripten", ignore)]
204 fn test_command_fork_no_unwind() {
205 let got = catch_unwind(|| {
206diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs 106diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs
207index 5d6b9e94ee9..a5aacb2eb87 100644 107index 5d6b9e94ee9..a5aacb2eb87 100644
208--- a/library/std/src/thread/tests.rs 108--- a/library/std/src/thread/tests.rs