Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6565b97

Browse files
committed
1 parent 52e958d commit 6565b97

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

git-command/tests/command.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ mod spawn {
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 {
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
}

0 commit comments

Comments
 (0)