From a1c86fcdad95cd50e08a623a97c641afeea008e7 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Thu, 14 May 2026 18:33:17 -0700 Subject: [PATCH] Harden Windows PowerShell output tests --- codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs b/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs index 96f5c39e92..bd441af84d 100644 --- a/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs +++ b/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs @@ -247,7 +247,7 @@ fn legacy_non_tty_powershell_emits_output() { pwsh.display().to_string(), "-NoProfile".to_string(), "-Command".to_string(), - "Write-Output LEGACY-NONTTY-DIRECT".to_string(), + "'LEGACY-NONTTY-DIRECT'".to_string(), ], cwd.as_path(), HashMap::new(), @@ -433,7 +433,7 @@ fn legacy_capture_powershell_emits_output() { pwsh.display().to_string(), "-NoProfile".to_string(), "-Command".to_string(), - "Write-Output LEGACY-CAPTURE-DIRECT".to_string(), + "'LEGACY-CAPTURE-DIRECT'".to_string(), ], cwd.as_path(), HashMap::new(), @@ -527,7 +527,7 @@ fn legacy_tty_powershell_emits_output_and_accepts_input() { "-NoProfile".to_string(), "-NoExit".to_string(), "-Command".to_string(), - "$PID; Write-Output ready".to_string(), + "$PID; 'ready'".to_string(), ], cwd.as_path(), HashMap::new(), @@ -544,7 +544,7 @@ fn legacy_tty_powershell_emits_output_and_accepts_input() { let writer = spawned.session.writer_sender(); writer - .send(b"Write-Output second\n".to_vec()) + .send(b"'second'\n".to_vec()) .await .expect("send second command"); writer