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 a226c68 commit b290c0fCopy full SHA for b290c0f
git_xet/src/utils/process_wrapping.rs
@@ -217,15 +217,18 @@ mod tests {
217
}
218
219
let (response, _err) = cmd.wait_with_output()?;
220
+ #[cfg(unix)]
221
assert_eq!(response, "hello".as_bytes());
222
+ #[cfg(windows)]
223
+ assert_eq!(response, "hello\r\n".as_bytes());
224
225
Ok(())
226
227
228
#[test]
229
fn test_error_on_get_stdin_without_captured() -> Result<()> {
- let mut command = Command::new("more");
- command.current_dir(std::env::current_dir()?);
230
+ let mut command = Command::new("cmd");
231
+ command.current_dir(std::env::current_dir()?).args(&["/C", "more"]);
232
233
let mut command = CapturedCommand::new(command)?;
234
assert!(command.stdin().is_err());
0 commit comments