From fe71fa844ab3933831631956378ad8f77f335042 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 26 Nov 2026 12:44:53 +0100 Subject: [PATCH] Fixed an unused import in the tests of the stale process cleanup on Windows --- runtime/src/stale_process_cleanup.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/stale_process_cleanup.rs b/runtime/src/stale_process_cleanup.rs index 6570062f5..92ea23c51 100644 --- a/runtime/src/stale_process_cleanup.rs +++ b/runtime/src/stale_process_cleanup.rs @@ -99,12 +99,12 @@ pub fn log_potential_stale_process(pid_file_path: PathBuf, pid: u32, sidecar_typ } } -#[cfg(test)] +// The test starts `sleep`, which Windows lacks: +#[cfg(all(test, unix))] mod tests { use super::*; /// Verifies that a process found by its number alone gets a PID file and is killed later on. - #[cfg(unix)] #[test] fn stale_process_is_recorded_and_killed() { use std::os::unix::process::ExitStatusExt;