Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Update Windows process-tree tests for inherited FDs (#34640)

Michael Bolinbdd3118c71a2
diff --git a/codex-rs/utils/pty/src/windows_tests.rs b/codex-rs/utils/pty/src/windows_tests.rs
index 06e7fd0a51..0dc095752c 100644
--- a/codex-rs/utils/pty/src/windows_tests.rs
+++ b/codex-rs/utils/pty/src/windows_tests.rs
@@ -79,7 +79,7 @@ async fn assert_terminate_kills_descendant(
);
let args = vec!["-u".to_string(), "-c".to_string(), code];
let spawned = if backend == "pipe" {
- spawn_pipe_process_no_stdin(python, &args, Path::new("."), env, /*arg0*/ &None).await?
+ spawn_pipe_process_no_stdin(python, &args, Path::new("."), env, /*arg0*/ &None, &[]).await?
} else {
spawn_pty_process(
python,
@@ -88,6 +88,7 @@ async fn assert_terminate_kills_descendant(
env,
/*arg0*/ &None,
TerminalSize::default(),
+ &[],
)
.await?
};
@@ -134,7 +135,7 @@ async fn assert_normal_exit_preserves_descendant(
);
let args = vec!["-u".to_string(), "-c".to_string(), code];
let spawned = if backend == "pipe" {
- spawn_pipe_process_no_stdin(python, &args, Path::new("."), env, /*arg0*/ &None).await?
+ spawn_pipe_process_no_stdin(python, &args, Path::new("."), env, /*arg0*/ &None, &[]).await?
} else {
spawn_pty_process(
python,
@@ -143,6 +144,7 @@ async fn assert_normal_exit_preserves_descendant(
env,
/*arg0*/ &None,
TerminalSize::default(),
+ &[],
)
.await?
};