We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b290c0f commit 9377455Copy full SHA for 9377455
git_xet/src/utils/process_wrapping.rs
@@ -227,8 +227,7 @@ mod tests {
227
228
#[test]
229
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"]);
+ let command = Command::new(if cfg!(windows) { "cmd" } else { "sh" });
232
233
let mut command = CapturedCommand::new(command)?;
234
assert!(command.stdin().is_err());
0 commit comments