test: run test_exec_with_separator on Windows when echo is available
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e46230b2c3
commit
2797c4a6d5
1 file changed
+5
-1
+5
-1
@@ -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(
|
||||
&[
|
||||
|
||||
Reference in new issue
Block a user