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 ea276c0db9..86e84fb0b8 100644 --- a/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs +++ b/codex-rs/windows-sandbox-rs/src/unified_exec/tests.rs @@ -229,7 +229,13 @@ fn legacy_non_tty_cmd_honors_deny_read_overrides() { vec![ "C:\\Windows\\System32\\cmd.exe".to_string(), "/c".to_string(), - format!("type \"{public_rel}\" 2>&1"), + format!( + "cd & dir & dir \"{}\" & type \"{public_rel}\" 2>&1", + fixture_dir + .file_name() + .expect("fixture name") + .to_string_lossy(), + ), ], cwd.as_path(), HashMap::new(),