mirror of
https://github.com/sharkdp/fd.git
synced 2026-10-12 02:22:28 +00:00
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:
committed by
Thayne McCombs
co-authored by
Claude Opus 5.5
parent
e46230b2c3
commit
2797c4a6d5
+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