History

fix CI (#450)

Sebastian Thiel committed 4 years ago

Commit 6565b971 parent 52e958d1 file · +6 −0Browse files

Showing the changes to git-command (1 of 1 file). Show all

Unified · Split

git-command/tests/command.rs+6−0
@@ -44,7 +44,10 @@ mod spawn { · 43 unmodified lines
4444 .spawn()?
4545 .wait_with_output()?;
4646 assert!(out.status.success());
47+ #[cfg(not(windows))]
4748 assert_eq!(out.stdout.as_bstr(), "1\n");
49+ #[cfg(windows)]
50+ assert_eq!(out.stdout.as_bstr(), "1\r\n");
4851 Ok(())
4952 }
5053
@@ -57,7 +60,10 @@ mod spawn { · 6 unmodified lines
5760 .spawn()?
5861 .wait_with_output()?;
5962 assert!(out.status.success());
63+ #[cfg(not(windows))]
6064 assert_eq!(out.stdout.as_bstr(), "1 2\n");
65+ #[cfg(windows)]
66+ assert_eq!(out.stdout.as_bstr(), "1 2\r\n");
6167 Ok(())
6268 }
6369 }