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

This commit is contained in:
Ogulcan Celik
2026-05-24 00:25:12 +03:00
parent 45e88fd0b5
commit c359edee19
+10 -1
View File
@@ -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");