Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

test: skip short-lived restore fallback pty test on macos

Ogulcan Celikc359edee19f7
diff --git a/src/pane.rs b/src/pane.rs
index 70b855cb5..13d4c08b7 100644
--- a/src/pane.rs
+++ b/src/pane.rs
@@ -1375,9 +1375,18 @@ mod tests {
}
#[test]
+ #[cfg_attr(
+ target_os = "macos",
+ ignore = "macOS keeps short-lived PTY fallback commands alive under portable_pty"
+ )]
fn restore_wrapper_falls_back_after_early_resume_failure() {
+ #[cfg(target_os = "macos")]
+ let true_cmd = "/usr/bin/true";
+ #[cfg(not(target_os = "macos"))]
+ let true_cmd = "/bin/true";
+
let argv = vec!["/bin/sh".into(), "-c".into(), "exit 7".into()];
- let cmd = restore_command_builder("codex", "/bin/true", &argv);
+ let cmd = restore_command_builder("codex", true_cmd, &argv);
let (success, output) = capture_command_output(cmd);
assert!(success, "fallback command should own the final exit status");