From patchwork Fri Aug 16 15:54:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yash Shinde X-Patchwork-Id: 47910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D63E0C3DA4A for ; Fri, 16 Aug 2024 15:54:55 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.151611.1723823693523317067 for ; Fri, 16 Aug 2024 08:54:53 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=89589af958=yash.shinde@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47GBf1PG018526 for ; Fri, 16 Aug 2024 15:54:52 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2048.outbound.protection.outlook.com [104.47.70.48]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 411vpqrmjj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 16 Aug 2024 15:54:52 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ksxt+7hj9n6TBuMQqrTtN/XWzLoq0/YeFFSqebBb8tCWhrdafOKS5PHAeLeRaugrq8oOCfdsz3GePf6xU6AO+IFDOsNEeXn4tSn/b2I3ITg7iGeAAG3cuVEq08lYUbUHbR6ZTdYB/hWNMnRyB4QFOEOreEELVPEqT56TUHkb5E5Rp8vWa+LO1fanDdlJsj9tVEo+n+4Se7ehYaKdmi1ufpJj86YdxMl0KAPwOTdiqgUZ+xQhqiCdctsOgmgalZyUEPDBxscghGkfpduEPRjVnKaepYjI6zRTTvsecQ/NZB1Ze6ILeWeO38kJc0HNkWSB/3RGdNZaccWuhyo3xiTAaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FI8Tbl5qCYawiv2uckQJ9z/N9LGMSqSr+W3tzRVf0yI=; b=od9e1+Wuw+ufCpGISwdqtr4elt/6Zc0Nqo1az6PHZWI6cuqScOEC8POCW5BhtSgd31yaHGx3Z0CsVrFnqJ8aHx2MlBzCPjlYNtRYFcuf8xY/cK6xNZlbJsFgdi7a4tTzr/xcbu8hgcye8BCHLa4IBEPe8tbyqbTnBzRzEL/B/5EghLDH970N+aR9HqGGPyyHGtJROfTj6rIDiTWtGnpLy3oi9484zNm+wcyMsvWuxy1HilE2cZFlNDJMFv0gTa6zhceyMcBKaUcMXBUnHcGgmApG+rriQx6aQOPauskbZArdaplN/fKcTtBzgzhqonBnL+NYa7TQSyiOCgSILgZwtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from PH7PR11MB7593.namprd11.prod.outlook.com (2603:10b6:510:27f::9) by CH3PR11MB7916.namprd11.prod.outlook.com (2603:10b6:610:131::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.17; Fri, 16 Aug 2024 15:54:46 +0000 Received: from PH7PR11MB7593.namprd11.prod.outlook.com ([fe80::2688:e731:421b:5ebc]) by PH7PR11MB7593.namprd11.prod.outlook.com ([fe80::2688:e731:421b:5ebc%4]) with mapi id 15.20.7875.019; Fri, 16 Aug 2024 15:54:45 +0000 From: Yash.Shinde@windriver.com To: openembedded-core@lists.openembedded.org Cc: Randy.MacLeod@windriver.com, Naveen.Gowda@windriver.com, Sundeep.Kokkonda@windriver.com, Yash.Shinde@windriver.com Subject: [PATCH 1/2] rust: Oe-selftest changes for rust v1.78 Date: Fri, 16 Aug 2024 08:54:10 -0700 Message-ID: <20240816155419.213703-1-Yash.Shinde@windriver.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: BY3PR10CA0006.namprd10.prod.outlook.com (2603:10b6:a03:255::11) To PH7PR11MB7593.namprd11.prod.outlook.com (2603:10b6:510:27f::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR11MB7593:EE_|CH3PR11MB7916:EE_ X-MS-Office365-Filtering-Correlation-Id: 62e549f6-4544-481d-50da-08dcbe0bc001 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: dCEJMLAAbi1ZQ+cPjfAIbwSXa/GrIHDggicq7BlI25MqtJgMSp1ryQ36zLT9xU/R3aG3dC3O4GIeT77oj4UqDKXE6ElZOZX5qFzap+xtGYL91Y0KfnOsQ5MHqJhWh8n3ot1PmzOv1dAJ6MdnG6huPGzj6M2cZsf6LOgvCoROCM3TGGG4YtfOYERGrmEpmioL+8Zz/OdD+OAunmRpER/1SLVu06IY3aJjr4XXNp/MqnWa084z7oYvzNmLUJhcXvYh+YytATEUI5SZwdvKhqKPW9CUYKfW5SaCOHTdv8U/TxX1sVLq3LmAdogPfFR1X2R0K9TxoKhHG4dus0tLMlNhpILcAaj0mymJB/74Ut9Rtom8YV7gA7BkVlfxfEFJej0VPf9gF0Qlh6AOzkUYhpl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;SFV:NSPM;H:PH7PR11MB7593.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LPfd1fJQo6+/vSzQNB0SlVWp4Jxkv+37cwXe+3m4XLn8IqbamUZt5AqNx9eozlikafeUG2jjJ5wN0D4XRdIhorLVRvOtNY5AokCSZtMUtNnCtMGQV9VAWVXpyupKII0LknEfMw//8fpez1sDiV8twwcU4QSuxFYGiDsl0YFHQunbqHO/LpJZNqwV0WIwu5TQ2FyGDj+cDSn2ALbvqsR5t60zewJzgLx3DRD0qtzyR+gRaaVZn1I3ssX36MQ2IWYNXGrnz+QIv/YMMC2a1EcuUZ2e4cUOMUipQI/GwGLIkVT0zUjk5uQarcytyTWuJFvHrCNjL/Bw1K13Sd3fEi/RkCgtcHiMdQf+LykvMDhmiwmZlQOYudlC3ChgQhZGo875Rc41QuxXSj2gGMWBnlmjSiKfAWU4m5MlwTL1MODN/1Ax/r6lYpPss7z8OmanhLj9E+R9weroFn9g3RaDk0+OLqi4R+2heFbjdmnO8v/qv/IsI/g94xNwUEcdozRywqOSZ9KSJY105z8Y/jh6RexoUE7kQ236X7v1wB4rGuQwBxHtcKf+KNAW5ooyxuvQxul552uitxybDZN5GieW3Drx/4qIFHZ/RoTjtwaCSGAZLBFdvuVj++15IATjeq9QwFIp+1PVppqZJeJ+W1tLygm4fvvmKWm9InUtDvcasiDvfjlPle/IzWH6RdT0FaD265VoJ5c9vub1dnAxlgA3QITVXn7eHNW2RtppT2EFSvw/4SSPTteXtFTf95ozinpzF/HkmDWhCDXx2dzW3FR05Q4t5FRwZ2UAQ4oTI1wZjfgDyc8xHdqYtbb2mP+uepO1Nkgr7FpCpHxodtmGv8HAdNCjuzq2xxj1IWnPpdtX+me3e7li1w7LTSSUVmT1SyPdtClsj8SpFg15kjqtsfe3NvlVzp+53qHLJ6IEnDf8ZCc1aE47IbA5hOTsEmGYgcZkIVjsH80wpVLo6ziVa+hsRKttOJ+XOLUrVLTqV6ySpQt3bzhCRXmNOFybvhi5YVH9eqRfU1/yvFrmSTC3KwZpBZVL4MidD+K5XFzRjRX5iu0pEJPaIjk7ESkEUb8ORdIDzNbZ89EtZKhMsBX1k55xQEpzNLIL5qosvY78lM+bXX7GMyHJUhnnxBJJPvwsf8qk7zcysgj1OzXRSwAilehx6UTfFCJII/6d+NmRZxxnpcmR4swZ7rgQM/q/j73dF58XsjO8aqeyXSX88nP4sH/xeJ4OCMvK+XvgA6JCUDUvgwdwCJTe6hsVmCodvzky+mAyKKl/C1XFGwS3/2eqmNjIrylyiglqlkcIJKYN5pNllHP1VTjcGtvn/mxS1fKVZGKd7nzqNuiyAtsIqLbvnJJNJqz0I+Or+Bz2CMPV5tYe8LnuwrkRHlEoBlXsmQHj0WdCxNdMOLlMbz1sUN/QAPaSr56F0sYYjGkkIxCWxqPpHIPBv0yudrBybD/+6czBdzHU6Oy529Egwuc1YfCXc5Fm5Mny+CKqPkm/y5+8rnFJmyRlPBxCU4sdL9H68JAPmQo3n0c/D26HjHfjiThYSJYuRjY18BUYhYFs9gxKKsZAN6aC2kaduTi+UKUTYxiDUfbnxJkHPkvOaKzLbsedRgml31Tlng== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62e549f6-4544-481d-50da-08dcbe0bc001 X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB7593.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 15:54:45.7287 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mvTKHS75ZMKnDyoQcrs8GD0cD2QuGV8HuFqAVKpQNDMKwbhhbnBVn7qLUUZ8+op1pAxYPuGOXCwcNNiONMCardK8r3Reg5gflT4HYN2bI80= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7916 X-Authority-Analysis: v=2.4 cv=WeheaFhX c=1 sm=1 tr=0 ts=66bf764c cx=c_pps a=PK5aExQQjalka8oDlC/sVA==:117 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=yoJbH4e0A30A:10 a=bRTqI5nwn0kA:10 a=t7CeM3EgAAAA:8 a=m4djPkrryH8lrL0ZWTMA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: G8E3brd2aYHIpRmQ0lIr3UBO8qkJV3k5 X-Proofpoint-ORIG-GUID: G8E3brd2aYHIpRmQ0lIr3UBO8qkJV3k5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-16_09,2024-08-16_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 mlxscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2407110000 definitions=main-2408160113 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 16 Aug 2024 15:54:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/203470 From: Yash Shinde Add some of the upsupported/failing tests to the exclude list and ignore the failing unit tests. Signed-off-by: Yash Shinde --- 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(()); +