Skip to content

Commit

Permalink
Test environment_variables_are_passed_one_by_one on Windows
Browse files Browse the repository at this point in the history
This enables the `environment_variables_are_passed_one_by_one` test
for `gix-command` on Windows. It was marked to run on Unix-like
systems only. But it runs and passes on Windows, requiring no
changes. (Possibly it hadn't passed at the time it was introduced.)

The `command_may_be_shell_script` call is sufficient even though it
does not disable manual argument splitting, because the command
used in this test contains `$` (to expand variables in the shell)
and is thus already ineligible for manual argument splitting.
  • Loading branch information
EliahKagan committed Feb 17, 2025
1 parent 0e451d0 commit 4fc1092
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gix-command/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ mod spawn {
use bstr::ByteSlice;

#[test]
#[cfg(unix)]
fn environment_variables_are_passed_one_by_one() -> crate::Result {
let out = gix_command::prepare("echo $FIRST $SECOND")
.env("FIRST", "first")
Expand Down

0 comments on commit 4fc1092

Please sign in to comment.