Skip to content

Commit

Permalink
Relax a test to accept EAGAIN from preadv2 on a socket. (#867)
Browse files Browse the repository at this point in the history
Following up on #812, accept `Errno::AGAIN` from a `NOWAIT` read on a
socket too.
  • Loading branch information
sunfishcode authored Oct 4, 2023
1 parent 6ef5d9e commit 760a68e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/io/read_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ fn test_preadv2_nowait() {
ReadWriteFlags::NOWAIT,
) {
Err(rustix::io::Errno::OPNOTSUPP | rustix::io::Errno::NOSYS) => {}
Err(rustix::io::Errno::AGAIN) => {}
Ok(_) => panic!("preadv2 unexpectedly succeeded"),
Err(e) => panic!("preadv2 failed with an unexpected error: {:?}", e),
}
Expand Down

0 comments on commit 760a68e

Please sign in to comment.