From patchwork Thu May 1 20:40:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 62329 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 AA3E5C369DC for ; Thu, 1 May 2025 20:41:22 +0000 (UTC) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mx.groups.io with SMTP id smtpd.web10.4606.1746132072588291034 for ; Thu, 01 May 2025 13:41:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=BObJgSA4; spf=pass (domain: konsulko.com, ip: 209.85.222.171, mailfrom: scott.murray@konsulko.com) Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-7c55500d08cso152173885a.0 for ; Thu, 01 May 2025 13:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1746132071; x=1746736871; 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=t+n/jI5C3O5f6mnbC8LXviTxW039ZYf4pH5mQ5n7J9I=; b=BObJgSA4wgMP8oFbCK3ozWXLvyK4m4G1KbK5w1ylVehvGgzR/ajUirP2x+oZywWsl0 PO/5y1NnWMOLYdoQekMVfobgcMSmsK3kVjRo38OCYdLBK0IqZG5nekIQp6qtAvaaagXd Yq1u6eoq6rjh9VEZw/GqWoxF9vcADGUk5StbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746132071; x=1746736871; 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=t+n/jI5C3O5f6mnbC8LXviTxW039ZYf4pH5mQ5n7J9I=; b=nw7DbTZ2cOPugDHKKoAMsXb2dOfp1xtz8Z6ekpJWdNfCrAnKo0r74AlVinENJDWeid cLuvgQe6bM5FbjjzgzyWlgRgVsWLRySnzmkLx1saJQNnBcbebeGPj+MDyUg0Herv/XlS ul3H0xE+/TsGAD+ni1fiyEnL8Ksq5tOgXDkqYl1UjN979Ey+iFgpwfIE0ne+UyhydIvw ELAKIiH1Z0wk3h1FH3EEA4NwzjwG99aR/ad1ektubYie6k4H+OQMswe3RBaQmwZzn2Yr y+crRaT87BQ7oRZfKlHouvFf7pmp/FAryg60WBoR5x/6xwkxdVC/JQ/9fmmaMhohylYZ O7MA== X-Gm-Message-State: AOJu0Yzno6MDZl+i9iVuyhpihmOnAECih+4UvOxqcFnWLfU9DhjSB1lH isT7zC7eGNM3MQ64UTQEkbHZhx6TzhwtZb126nRhF1ln4xp/NZB0vocsrcZQMwAXdD46WL6a7sI / X-Gm-Gg: ASbGnct/LkNGOFIyhJqCxDSPw0py3Fr7CumOTkNlx00cnzP+p7m767z8LMITd3Nnx8/ wk8GlxWM3IC3bpkUdAzVOPiImgPD1KZshmRuGmprhCLTPnkoHCtwL7ZYxkeDnwI0MOHQES2S+4U C8ECRzOmq7CJzYI//7+qlyzl62A5u2qJc2PeShZ2wr7hflxoD9rxuwZDb3zE/g7l6loAMOXgihq JqRSs8+Qgj1MQ7Z+WTUZyuQ+jWOfQwbWScz3IBZzw81jZH/3CU98xGQ2NiuSELoWf2RErhFoIFh 2f5FHCYgu50K7fr9HMjkFQMcfGbZaBaGust7hXKhNVZm2wTFit17GVvUgWeMBhBgaSc2rPVWxte EPLCno7Vs/Q1mzhGz X-Google-Smtp-Source: AGHT+IH9rjjN7YtrrpzCUhtJMDq4337Mgy5aMQJyfAmHbkrHbZn9jLpl++UteUE/JMU1+xZSn2ERuw== X-Received: by 2002:a05:620a:248a:b0:7c5:a55b:fa6c with SMTP id af79cd13be357-7cad5ba3d9emr66253785a.38.1746132071206; Thu, 01 May 2025 13:41:11 -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.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 13:41:10 -0700 (PDT) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][kirkstone/rust][PATCH 36/38] rust: re-enable the unit tests that are ignored Date: Thu, 1 May 2025 16:40:12 -0400 Message-ID: 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/1463 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: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 775108f131412122beb2b844dc5e2a4d47ce3b89) Signed-off-by: Scott Murray --- .../rust/files/rust-oe-selftest.patch | 95 ------------------- 1 file changed, 95 deletions(-) diff --git a/recipes-devtools/rust/files/rust-oe-selftest.patch b/recipes-devtools/rust/files/rust-oe-selftest.patch index 2cca850..4a8760a 100644 --- a/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/recipes-devtools/rust/files/rust-oe-selftest.patch @@ -43,77 +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/test/src/stats/tests.rs b/library/test/src/stats/tests.rs ---- a/library/test/src/stats/tests.rs -+++ b/library/test/src/stats/tests.rs -@@ -40,6 +40,7 @@ - } - - #[test] -+#[ignore] - fn test_min_max_nan() { - let xs = &[1.0, 2.0, f64::NAN, 3.0, 4.0]; - let summary = Summary::new(xs); -diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/tests.rs -index 35a5291a347..5f2858d2505 100644 ---- a/library/std/src/io/buffered/tests.rs -+++ b/library/std/src/io/buffered/tests.rs -@@ -488,6 +488,7 @@ fn flush(&mut self) -> io::Result<()> { - } - - #[test] -+#[ignore] - #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads - fn panic_in_write_doesnt_flush_in_drop() { - static WRITES: AtomicUsize = AtomicUsize::new(0); -diff --git a/library/std/src/io/stdio/tests.rs b/library/std/src/io/stdio/tests.rs -index f89fd27ce6c..79737f5b127 100644 ---- a/library/std/src/io/stdio/tests.rs -+++ b/library/std/src/io/stdio/tests.rs -@@ -25,6 +25,7 @@ fn stderrlock_unwind_safe() { - fn assert_unwind_safe() {} - - #[test] -+#[ignore] - #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads - fn panic_doesnt_poison() { - thread::spawn(|| { -diff --git a/library/std/src/sync/mpsc/sync_tests.rs b/library/std/src/sync/mpsc/sync_tests.rs -index 945de280f40..1ac7eeabc5c 100644 ---- a/library/std/src/sync/mpsc/sync_tests.rs -+++ b/library/std/src/sync/mpsc/sync_tests.rs -@@ -252,6 +252,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 || { -@@ -347,6 +348,7 @@ fn oneshot_multi_task_recv_then_send() { - } - - #[test] -+#[ignore] - fn oneshot_multi_task_recv_then_close() { - let (tx, rx) = sync_channel::>(0); - let _t = thread::spawn(move || { -@@ -371,6 +373,7 @@ fn oneshot_multi_thread_close_stress() { - } - - #[test] -+#[ignore] - fn oneshot_multi_thread_send_close_stress() { - for _ in 0..stress_factor() { - let (tx, rx) = sync_channel::(0); -@@ -385,6 +388,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) = sync_channel::(0); 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 @@ -402,14 +331,6 @@ index 160af8a65d..686f4607bb 100644 fn smoke() { let value = 12u32; let reference = &value; -@@ -28,6 +29,7 @@ fn smoke() { - } - - #[test] -+#[ignore] - fn stable_hash_hashes_as_tuple() { - let hash_packed = { - let mut hasher = StableHasher::new(); diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs index 4d342c72cc..9a77f92616 100644 --- a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs @@ -422,22 +343,6 @@ index 4d342c72cc..9a77f92616 100644 fn smoke() { let value = 12u32; let reference = &value; -@@ -28,6 +29,7 @@ fn smoke() { - } - - #[test] -+#[ignore] - fn boxed() { - let value = 12u32; - let boxed = Box::new(value); -@@ -52,6 +54,7 @@ fn boxed() { - } - - #[test] -+#[ignore] - fn arclones() { - let value = 12u32; - let arc = Arc::new(value); diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs index 9d4f52a092..d425e5f7b7 100644 --- a/library/std/src/thread/local/tests.rs