Skip to content

Commit 2efce72

Browse files
authored
Merge pull request #1845 from EliahKagan/shell-tests-windows
Enable shell-related and env var tests Windows already supports
2 parents 1e7d09d + 4fc1092 commit 2efce72

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gix-command/tests/command.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ mod spawn {
446446
use bstr::ByteSlice;
447447

448448
#[test]
449-
#[cfg(unix)]
450449
fn environment_variables_are_passed_one_by_one() -> crate::Result {
451450
let out = gix_command::prepare("echo $FIRST $SECOND")
452451
.env("FIRST", "first")
@@ -459,10 +458,9 @@ mod spawn {
459458
}
460459

461460
#[test]
462-
#[cfg(unix)]
463461
fn disallow_shell() -> crate::Result {
464462
let out = gix_command::prepare("PATH= echo hi")
465-
.command_may_be_shell_script()
463+
.command_may_be_shell_script_disallow_manual_argument_splitting()
466464
.spawn()?
467465
.wait_with_output()?;
468466
assert_eq!(out.stdout.as_bstr(), "hi\n");

0 commit comments

Comments
 (0)