From 8defcf96834ed654af6cc0c5a26b8aada90b93d9 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 6 Oct 2026 20:41:29 +0300 Subject: [PATCH] test: fix macos lint and keep the pixel mouse server test unix-only --- src/client/input.rs | 2 +- src/raw_input.rs | 5 ----- src/server/headless/tests/mod.rs | 2 ++ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/client/input.rs b/src/client/input.rs index 992142065..e2bd2b9d2 100644 --- a/src/client/input.rs +++ b/src/client/input.rs @@ -578,7 +578,7 @@ mod tests { let events = framer.push(b"\x1b\x1b"); assert_eq!(events.len(), 1); - assert!(framer.has_pending_input()); + // The second escape is still pending until the idle flush. assert_eq!(framer.flush_timeout().len(), 1); } diff --git a/src/raw_input.rs b/src/raw_input.rs index eb95b041e..e0fa9f305 100644 --- a/src/raw_input.rs +++ b/src/raw_input.rs @@ -124,11 +124,6 @@ impl RawInputFramer { events_from_framed_chunks(self.byte_framer.push(data)) } - #[cfg(all(test, unix))] - pub(crate) fn has_pending_input(&self) -> bool { - self.byte_framer.has_pending_input() - } - #[cfg(windows)] pub(crate) fn holds_host_default_color_escape(&self) -> bool { self.byte_framer.buffer.as_slice() == [ESC] diff --git a/src/server/headless/tests/mod.rs b/src/server/headless/tests/mod.rs index 6ff7b2819..da13ded1e 100644 --- a/src/server/headless/tests/mod.rs +++ b/src/server/headless/tests/mod.rs @@ -6037,6 +6037,8 @@ async fn client_shell_release_cleanup_does_not_promote_and_survives_disconnect() shutdown_test_runtimes(&mut server); } +// Pixel mouse is a Unix client capability. +#[cfg(unix)] #[tokio::test] async fn client_shell_requests_host_pixels_for_an_unfocused_pixel_pane() { // #4750: host reports go to the pane under the pointer, focused or not.