Skip to content

Commit

Permalink
refactor: work around the cfg
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
  • Loading branch information
koivunej and Darksonn authored Nov 21, 2022
1 parent 47c6e69 commit d7be7c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests-integration/tests/process_stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ async fn vectored_writes() {
// on unix our small payload should always fit in whatever default sized pipe with a single
// syscall. if multiple are used, then the forwarding does not work, or we are on a platform
// for which the `std` does not support vectored writes.
#[cfg(target_family = "unix")]
assert_eq!(writes_completed, 1);
assert_eq!(writes_completed == 1, stdin.is_write_vectored());

assert_eq!(&read.unwrap(), b"hello\nworld!\n");
}

0 comments on commit d7be7c6

Please sign in to comment.