Skip to content

Commit

Permalink
appveyor redirects its output \!
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 12, 2016
1 parent 6f6d3f8 commit 2103d90
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,27 @@ mod tests {
}

#[test]
#[cfg(windows)]
fn is_out() {
// appveyor pipes its output
assert!(!is(Stream::Stdout))
}

#[test]
#[cfg(windows)]
fn is_in() {
// appveyor pipes its output
assert!(!is(Stream::Stdin))
}

#[test]
#[cfg(unix)]
fn is_out() {
assert!(is(Stream::Stdout))
}

#[test]
#[cfg(unix)]
fn is_in() {
assert!(is(Stream::Stdin))
}
Expand Down

0 comments on commit 2103d90

Please sign in to comment.