Showing the changes to git-command (1 of 1 file). Show all
Unified · Split
| @@ -44,7 +44,10 @@ mod spawn { · 43 unmodified lines | ||
| 44 | 44 | .spawn()? |
| 45 | 45 | .wait_with_output()?; |
| 46 | 46 | assert!(out.status.success()); |
| 47 | + #[cfg(not(windows))] | |
| 47 | 48 | assert_eq!(out.stdout.as_bstr(), "1\n"); |
| 49 | + #[cfg(windows)] | |
| 50 | + assert_eq!(out.stdout.as_bstr(), "1\r\n"); | |
| 48 | 51 | Ok(()) |
| 49 | 52 | } |
| 50 | 53 | |
| @@ -57,7 +60,10 @@ mod spawn { · 6 unmodified lines | ||
| 57 | 60 | .spawn()? |
| 58 | 61 | .wait_with_output()?; |
| 59 | 62 | assert!(out.status.success()); |
| 63 | + #[cfg(not(windows))] | |
| 60 | 64 | assert_eq!(out.stdout.as_bstr(), "1 2\n"); |
| 65 | + #[cfg(windows)] | |
| 66 | + assert_eq!(out.stdout.as_bstr(), "1 2\r\n"); | |
| 61 | 67 | Ok(()) |
| 62 | 68 | } |
| 63 | 69 | } |