From: Yash Shinde <[email protected]>

Add some of the upsupported/failing tests to the exclude list
and ignore the failing unit tests.

Signed-off-by: Yash Shinde <[email protected]>
---
 meta/lib/oeqa/selftest/cases/rust.py          | 34 +++++++++-
 .../rust/files/rust-oe-selftest.patch         | 64 ++++++++++++++++++-
 2 files changed, 95 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/rust.py 
b/meta/lib/oeqa/selftest/cases/rust.py
index 62ca762cd0..aa5814eccf 100644
--- a/meta/lib/oeqa/selftest/cases/rust.py
+++ b/meta/lib/oeqa/selftest/cases/rust.py
@@ -205,7 +205,39 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, 
OEPTestResultTestCase):
                             'library/std/src/sync/rwlock/tests.rs',
                             'library/std/src/thread/tests.rs',
                             'library/test/src/stats/tests.rs',
-                            'tidyselftest'
+                            'tidyselftest',
+                            'compiler/rustc_span',
+                            'compiler/rustc_expand',
+                            'tests/ui/array-slice-vec',
+                            'tests/ui/associated-consts',
+                            'tests/ui/associated-types',
+                            'tests/ui/allocator',
+                            'tests/ui/abi/extern',
+                            'tests/codegen/non-terminate/infinite-loop-1.rs',
+                            'tests/codegen/coercions.rs',
+                            'tests/codegen/const_scalar_pair.rs',
+                            'tests/codegen/cold-call-declare-and-call.rs',
+                            'tests/codegen/issues',
+                            'tests/codegen/bool-cmp.rs',
+                            'tests/codegen/ascii-char.rs',
+                            'tests/codegen/frame-pointer.rs',
+                            'tests/codegen/common_prim_int_ptr.rs',
+                            'tests/codegen/default-requires-uwtable.rs',
+                            'tests/codegen/debug-accessibility/public-enum.rs',
+                            'tests/codegen/meta-filecheck/filecheck-flags.rs',
+                            'tests/codegen/float_math.rs',
+                            
'tests/codegen/debug-accessibility/tuple-fields.rs',
+                            'tests/codegen/consts.rs',
+                            'tests/codegen/enum/enum-bounds-check.rs',
+                            'tests/codegen/debug-alignment.rs',
+                            'tests/codegen/export-no-mangle.rs',
+                            'tests/codegen/fastcall-inreg.rs',
+                            
'tests/codegen/debuginfo-inline-callsite-location.rs',
+                            'tests/codegen/enum/enum-debug-tagged.rs',
+                            'tests/codegen/adjustments.rs',
+                            
'tests/codegen/macos/x86_64-macosx-deployment-target.rs',
+                            'tests/codegen/frame-pointer.rs',
+                            'tests/codegen/meta-filecheck/check-prefix.rs'
                         ]
 
         exclude_fail_tests = " ".join([" --exclude " + item for item in 
exclude_list])
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch 
b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 1d287335d4..a69c1e5237 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -223,9 +223,9 @@ index 1a9d3d3f12f..0a9cfc48806 100644
  fn test_rw_arc_no_poison_rr() {
      let arc = Arc::new(RwLock::new(1));
      let arc2 = arc.clone();
-@@ -82,6 +85,7 @@ fn test_rw_arc_no_poison_rr() {
-     assert_eq!(*lock, 1);
+@@ -127,6 +127,7 @@
  }
+
  #[test]
 +#[ignore]
  fn test_rw_arc_no_poison_rw() {
@@ -330,3 +330,63 @@ diff --git a/library/alloc/src/slice/tests.rs 
b/library/alloc/src/slice/tests.rs
  #[cfg_attr(target_os = "emscripten", ignore)] // no threads
  #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
  fn panic_safe() {
+diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs
+--- a/library/test/src/tests.rs
++++ b/library/test/src/tests.rs
+@@ -424,6 +424,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn test_time_options_threshold() {
+     let unit = TimeThreshold::new(Duration::from_millis(50), 
Duration::from_millis(100));
+     let integration = TimeThreshold::new(Duration::from_millis(500), 
Duration::from_millis(1000));
+diff --git a/library/std/src/sync/mutex/tests.rs 
b/library/std/src/sync/mutex/tests.rs
+--- a/library/std/src/sync/mutex/tests.rs
++++ b/library/std/src/sync/mutex/tests.rs
+@@ -193,6 +193,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn test_mutex_arc_poison_mapped() {
+     let arc = Arc::new(Mutex::new(1));
+     assert!(!arc.is_poisoned());
+diff --git a/library/std/src/sync/mutex/tests.rs 
b/library/std/src/sync/mutex/tests.rs
+--- a/library/std/src/sync/mutex/tests.rs
++++ b/library/std/src/sync/mutex/tests.rs
+@@ -272,6 +272,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn panic_while_mapping_unlocked_poison() {
+     let lock = Mutex::new(());
+
+diff --git a/
+--- a/library/std/src/sync/rwlock/tests.rs
++++ b/library/std/src/sync/rwlock/tests.rs
+@@ -60,6 +60,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn test_rw_arc_poison_mapped_w_r() {
+     let arc = Arc::new(RwLock::new(1));
+     let arc2 = arc.clone();
+@@ -88,6 +89,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn test_rw_arc_poison_mapped_w_w() {
+     let arc = Arc::new(RwLock::new(1));
+     let arc2 = arc.clone();
+@@ -438,6 +440,7 @@
+ }
+
+ #[test]
++#[ignore]
+ fn panic_while_mapping_write_unlocked_poison() {
+     let lock = RwLock::new(());
+
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#203470): 
https://lists.openembedded.org/g/openembedded-core/message/203470
Mute This Topic: https://lists.openembedded.org/mt/107934730/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to