test: run test_exec_with_separator on Windows when echo is available

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
mrhard9090
2026-09-24 00:58:42 -06:00
committed by Thayne McCombs
co-authored by Claude Opus 5.5
parent e46230b2c3
commit 2797c4a6d5
+5 -1
View File
@@ -2110,9 +2110,13 @@ fn test_exec_batch_with_limit() {
}
/// Shell script execution (--exec) with a custom --path-separator
#[cfg(not(windows))] // Windows has no `echo` executable, only the shell builtin
#[test]
fn test_exec_with_separator() {
// On Windows, `echo` is only a shell builtin unless an `echo` executable is installed.
if cfg!(windows) && std::process::Command::new("echo").output().is_err() {
return;
}
let (te, abs_path) = get_test_env_with_abs_path(DEFAULT_DIRS, DEFAULT_FILES);
te.assert_output(
&[