From 4225722af91a7e2fa03b1dc128884eb558ff6689 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 02:15:02 +0000 Subject: [PATCH] Fix test failure on Windows in eldritch-libprocess Replaced `timeout` with `ping` in `test_std_process_kill` to avoid input redirection errors on Windows. `timeout` exits immediately if stdin is redirected, which caused the test to fail. `ping` is a reliable alternative for a sleep-like command on Windows. --- implants/lib/eldritchv2/stdlib/eldritch-libprocess/src/std.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implants/lib/eldritchv2/stdlib/eldritch-libprocess/src/std.rs b/implants/lib/eldritchv2/stdlib/eldritch-libprocess/src/std.rs index 79dbef2f7..9285b2026 100644 --- a/implants/lib/eldritchv2/stdlib/eldritch-libprocess/src/std.rs +++ b/implants/lib/eldritchv2/stdlib/eldritch-libprocess/src/std.rs @@ -286,9 +286,9 @@ mod tests { // Handle windows #[cfg(windows)] - let mut cmd = Command::new("timeout"); + let mut cmd = Command::new("ping"); #[cfg(windows)] - cmd.arg("10"); + cmd.args(["-n", "10", "127.0.0.1"]); if let Ok(mut child) = cmd.spawn() { let pid = child.id() as i64;