diff options
author | Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | 2025-05-13 02:32:08 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-15 10:55:26 +0100 |
commit | 8dc5f3376d7746955475865a8c5ea0da9b09d378 (patch) | |
tree | 020d8c13c766b87aaf406bf98ac6740e52ae7727 | |
parent | 0d29c9aaf69ade53614a739480de65724b1f9d08 (diff) | |
download | poky-8dc5f3376d7746955475865a8c5ea0da9b09d378.tar.gz |
rust: re-enable the unit tests that are previously 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: 56149c8c2108973666251e21609a7210a91984cf)
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.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index 909bc971db..048fc3f10b 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch | |||
@@ -103,50 +103,6 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
103 | fn test_get_mut_poison() { | 103 | fn test_get_mut_poison() { |
104 | let mut m = new_poisoned_rwlock(NonCopy(10)); | 104 | let mut m = new_poisoned_rwlock(NonCopy(10)); |
105 | 105 | ||
106 | diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs | ||
107 | index 5d6b9e94ee9..a5aacb2eb87 100644 | ||
108 | --- a/library/std/src/thread/tests.rs | ||
109 | +++ b/library/std/src/thread/tests.rs | ||
110 | @@ -116,6 +116,7 @@ fn test_is_finished() { | ||
111 | } | ||
112 | |||
113 | #[test] | ||
114 | +#[ignore] | ||
115 | fn test_join_panic() { | ||
116 | match thread::spawn(move || panic!()).join() { | ||
117 | result::Result::Err(_) => (), | ||
118 | @@ -218,6 +219,7 @@ fn test_simple_newsched_spawn() { | ||
119 | } | ||
120 | |||
121 | #[test] | ||
122 | +#[ignore] | ||
123 | fn test_try_panic_message_string_literal() { | ||
124 | match thread::spawn(move || { | ||
125 | panic!("static string"); | ||
126 | @@ -234,6 +236,7 @@ fn test_try_panic_message_string_literal() { | ||
127 | } | ||
128 | |||
129 | #[test] | ||
130 | +#[ignore] | ||
131 | fn test_try_panic_any_message_owned_str() { | ||
132 | match thread::spawn(move || { | ||
133 | panic_any("owned string".to_string()); | ||
134 | @@ -250,6 +253,7 @@ fn test_try_panic_any_message_owned_str() { | ||
135 | } | ||
136 | |||
137 | #[test] | ||
138 | +#[ignore] | ||
139 | fn test_try_panic_any_message_any() { | ||
140 | match thread::spawn(move || { | ||
141 | panic_any(Box::new(413u16) as Box<dyn Any + Send>); | ||
142 | @@ -268,6 +272,7 @@ fn test_try_panic_any_message_any() { | ||
143 | } | ||
144 | |||
145 | #[test] | ||
146 | +#[ignore] | ||
147 | fn test_try_panic_any_message_unit_struct() { | ||
148 | struct Juju; | ||
149 | |||
150 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs | 106 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs |
151 | --- a/library/test/src/tests.rs | 107 | --- a/library/test/src/tests.rs |
152 | +++ b/library/test/src/tests.rs | 108 | +++ b/library/test/src/tests.rs |