Skip to content

Commit 9377455

Browse files
committed
fix test bug
1 parent b290c0f commit 9377455

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git_xet/src/utils/process_wrapping.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ mod tests {
227227

228228
#[test]
229229
fn test_error_on_get_stdin_without_captured() -> Result<()> {
230-
let mut command = Command::new("cmd");
231-
command.current_dir(std::env::current_dir()?).args(&["/C", "more"]);
230+
let command = Command::new(if cfg!(windows) { "cmd" } else { "sh" });
232231

233232
let mut command = CapturedCommand::new(command)?;
234233
assert!(command.stdin().is_err());

0 commit comments

Comments
 (0)