Skip to content

Commit

Permalink
Merge pull request #1845 from EliahKagan/shell-tests-windows
Browse files Browse the repository at this point in the history
Enable shell-related and env var tests Windows already supports
  • Loading branch information
Byron authored Feb 18, 2025
2 parents 1e7d09d + 4fc1092 commit 2efce72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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 All @@ -459,10 +458,9 @@ mod spawn {
}

#[test]
#[cfg(unix)]
fn disallow_shell() -> crate::Result {
let out = gix_command::prepare("PATH= echo hi")
.command_may_be_shell_script()
.command_may_be_shell_script_disallow_manual_argument_splitting()
.spawn()?
.wait_with_output()?;
assert_eq!(out.stdout.as_bstr(), "hi\n");
Expand Down

0 comments on commit 2efce72

Please sign in to comment.