From patchwork Thu May 1 20:40:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 62330 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 B97DEC3ABAA for ; Thu, 1 May 2025 20:41:22 +0000 (UTC) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mx.groups.io with SMTP id smtpd.web11.4675.1746132073452330785 for ; Thu, 01 May 2025 13:41:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Phh8DGPE; spf=pass (domain: konsulko.com, ip: 209.85.219.54, mailfrom: scott.murray@konsulko.com) Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-6e8f05acc13so19273146d6.2 for ; Thu, 01 May 2025 13:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1746132072; x=1746736872; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=11J57WJF9pHru0vPtMabVyiPFirX+FHDEUG6K7rfQrM=; b=Phh8DGPEZSBrZYA+QcBP2qtlZzH7J/g2y+jl3blTHZovQQKBcEWdVrzLE6wra+H5LR aZxjo7PZcARo7e5Lpg3xDuYjpXCu2k6U/0n1MLPk7bPW7QjGlqBbRsJ/Rymt66RXs9Jy AlFZ+VWtqQVa7csuuLb7fgKr0X9IfACPqlAxw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746132072; x=1746736872; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=11J57WJF9pHru0vPtMabVyiPFirX+FHDEUG6K7rfQrM=; b=WuQxBZZ7DbfC1GPJDOL/HPr9/Z0hp4RfbDXL0Ugvzi7JHdE22+FBQlRCcjNkfggZro Rf2tTLknszE8gBq4WB6UnitYFVhsZ9+w1dLPnUMFSQ8ppeff1duZ9vkfrXkd2Xf4jt9+ /ipGrdoukpwStlO8jr/KXRRrF3ddLsqmnj8ObxMRqrs/5k92uIsjRUuDyBt2/ukd5VDN flMIHb/dLOpb2iHMbanmei+MBufCxuk5KJAhlQAFMIJTfmdbzCaNNNbBmd0Ud/aSzeRE A6yaI3qK9HL5sm92OziAIpngsqAyFh2Gn1hdGXZt3OKemH14TrEzFuqbJA2XlcYpq4yz y/zA== X-Gm-Message-State: AOJu0YzSF6XjmQmFT//ydDnXtIng3YzuQtcYLBgvf7d/89dw4BsvfOKj Y3ep1hobDmfIJzbtCFhQqYhqG8yrkV2fUsYioCzS/tUHC99SB7/Or7HJA7JoxpnwRZBlcjYSaFZ M X-Gm-Gg: ASbGnctzc48LPDsUB1OGwpAHGLFMExFUtymuqgjJQ2QGASZwmG+GSWyJ0AktfSCbohk lO6SREO5UgzE0Di9JBY7GreoHoP2imHHp9N9rJR8ae4dPqO4iVd2Qhi3X3YQOreEPuSA0DInf9U BiemQWGoqFJS18IuNElSamF0DKwgSUJS5spmBeNRoMed4jC8EuLQaySdPDjjcqoBZ8hO23gx1Vw isMYroHNxXfcnb/VHS+GWV68lBJKEVVq7ws/UkdASfhmPrwCLFKkHKEAm6gQP2n82XLrFJ72Ksl S5MaUZ/ky5Rkjy5/1G4YDTMmF5+ZwPRbsqLkW7VMtKzDTEBc6YaPIe0wzZI03uQVFQZdUI32sqa LkJCB23ZNpi2PSjhM X-Google-Smtp-Source: AGHT+IHLbFMtfdxe/SNZb04z4CFifY3c+Do1JXjjPSSIZ5CjJyOS1BM+CUIyuWBNBzCrrfWZcaY85w== X-Received: by 2002:ad4:5c6d:0:b0:6e4:3eb1:2bdb with SMTP id 6a1803df08f44-6f515632933mr9988206d6.43.1746132072152; Thu, 01 May 2025 13:41:12 -0700 (PDT) Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f50f3b03ddsm9086216d6.7.2025.05.01.13.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 13:41:11 -0700 (PDT) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][kirkstone/rust][PATCH 37/38] rust: re-enable the unit tests that are ignored Date: Thu, 1 May 2025 16:40:13 -0400 Message-ID: <03fe519d752c17b048bb9e7ee1c0fd74a9ef2347.1746130391.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 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 ; Thu, 01 May 2025 20:41:22 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/1464 From: Deepesh Varatharajan 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. Signed-off-by: Deepesh Varatharajan Signed-off-by: Richard Purdie (adapted from oe-core commit 65c207fb034848f9ef0de8cf8725c5eded363aca) Signed-off-by: Scott Murray --- .../rust/files/rust-oe-selftest.patch | 100 ------------------ 1 file changed, 100 deletions(-) diff --git a/recipes-devtools/rust/files/rust-oe-selftest.patch b/recipes-devtools/rust/files/rust-oe-selftest.patch index 4a8760a..909bc97 100644 --- a/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/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 fn test_can_print_warnings() { sess_and_cfg(&["-Awarnings"], |sess, _cfg| { assert!(!sess.dcx().can_emit_warnings()); -diff --git a/library/std/src/sync/mpsc/tests.rs b/library/std/src/sync/mpsc/tests.rs -index ac1a804cf9c..7c687982324 100644 ---- a/library/std/src/sync/mpsc/tests.rs -+++ b/library/std/src/sync/mpsc/tests.rs -@@ -233,6 +233,7 @@ fn oneshot_single_thread_send_port_close() { - } - - #[test] -+#[ignore] - fn oneshot_single_thread_recv_chan_close() { - // Receiving on a closed chan will panic - let res = thread::spawn(move || { -@@ -313,6 +314,7 @@ fn oneshot_multi_task_recv_then_send() { - } - - #[test] -+#[ignore] - fn oneshot_multi_task_recv_then_close() { - let (tx, rx) = channel::>(); - let _t = thread::spawn(move || { -@@ -337,6 +339,7 @@ fn oneshot_multi_thread_close_stress() { - } - - #[test] -+#[ignore] - fn oneshot_multi_thread_send_close_stress() { - for _ in 0..stress_factor() { - let (tx, rx) = channel::(); -@@ -351,6 +354,7 @@ fn oneshot_multi_thread_send_close_stress() { - } - - #[test] -+#[ignore] - fn oneshot_multi_thread_recv_close_stress() { - for _ in 0..stress_factor() { - let (tx, rx) = channel::(); -diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/poison/mutex/tests.rs -index 1786a3c09ff..9dcead7092b 100644 ---- a/library/std/src/sync/poison/mutex/tests.rs -+++ b/library/std/src/sync/poison/mutex/tests.rs -@@ -82,6 +82,7 @@ fn drop(&mut self) { - } - - #[test] -+#[ignore] - fn test_into_inner_poison() { - let m = new_poisoned_mutex(NonCopy(10)); - -@@ -106,6 +107,7 @@ fn test_get_mut() { - } - - #[test] -+#[ignore] - fn test_get_mut_poison() { - let mut m = new_poisoned_mutex(NonCopy(10)); - -@@ -146,6 +148,7 @@ fn test_mutex_arc_condvar() { - } - - #[test] -+#[ignore] - fn test_arc_condvar_poison() { - let packet = Packet(Arc::new((Mutex::new(1), Condvar::new()))); - let packet2 = Packet(packet.0.clone()); -@@ -175,6 +178,7 @@ fn test_arc_condvar_poison() { - } - - #[test] -+#[ignore] - fn test_mutex_arc_poison() { - let arc = Arc::new(Mutex::new(1)); - assert!(!arc.is_poisoned()); -@@ -220,6 +220,7 @@ fn test_mutex_arc_nested() { - } - - #[test] -+#[ignore] - fn test_mutex_arc_access_in_unwind() { - let arc = Arc::new(Mutex::new(1)); - let arc2 = arc.clone(); diff --git a/library/std/src/sync/poison/rwlock/tests.rs b/library/std/src/sync/poison/rwlock/tests.rs index 1a9d3d3f12f..0a9cfc48806 100644 --- a/library/std/src/sync/poison/rwlock/tests.rs @@ -183,26 +103,6 @@ index 1a9d3d3f12f..0a9cfc48806 100644 fn test_get_mut_poison() { let mut m = new_poisoned_rwlock(NonCopy(10)); -diff --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 -index 0a6c6ec19fc..bec257bc630 100644 ---- a/library/std/src/sys/pal/unix/process/process_unix/tests.rs -+++ b/library/std/src/sys/pal/unix/process/process_unix/tests.rs -@@ -6,6 +6,7 @@ - // safety etc., are tested in tests/ui/process/process-panic-after-fork.rs - - #[test] -+#[ignore] - fn exitstatus_display_tests() { - // In practice this is the same on every Unix. - // If some weird platform turns out to be different, and this test fails, use #[cfg]. -@@ -37,6 +38,7 @@ - } - - #[test] -+#[ignore] - #[cfg_attr(target_os = "emscripten", ignore)] - fn test_command_fork_no_unwind() { - let got = catch_unwind(|| { diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs index 5d6b9e94ee9..a5aacb2eb87 100644 --- a/library/std/src/thread/tests.rs