From ebc22c290bd0222261c7719dfc781ce5692060ca Mon Sep 17 00:00:00 2001 From: Nia Date: Wed, 3 Sep 2025 15:44:07 +0200 Subject: [PATCH] gpui: Don't risk accidentally panicking during tests (#37457) See the failure in https://github.com/zed-industries/zed/actions/runs/17413839503/job/49437345296 Release Notes: - N/A --- crates/gpui/src/test.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/gpui/src/test.rs b/crates/gpui/src/test.rs index 4794fd002e28595a5d165ff3ac5876ea31c8ce20..5ae72d2be1688893374e16a55445558b5bc33040 100644 --- a/crates/gpui/src/test.rs +++ b/crates/gpui/src/test.rs @@ -64,6 +64,9 @@ pub fn run_test( if attempt < max_retries { println!("attempt {} failed, retrying", attempt); attempt += 1; + // The panic payload might itself trigger an unwind on drop: + // https://doc.rust-lang.org/std/panic/fn.catch_unwind.html#notes + std::mem::forget(error); } else { if is_multiple_runs { eprintln!("failing seed: {}", seed);