Skip to content

Commit 760a68e

Browse files
authored
Relax a test to accept EAGAIN from preadv2 on a socket. (#867)
Following up on #812, accept `Errno::AGAIN` from a `NOWAIT` read on a socket too.
1 parent 6ef5d9e commit 760a68e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/io/read_write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ fn test_preadv2_nowait() {
226226
ReadWriteFlags::NOWAIT,
227227
) {
228228
Err(rustix::io::Errno::OPNOTSUPP | rustix::io::Errno::NOSYS) => {}
229+
Err(rustix::io::Errno::AGAIN) => {}
229230
Ok(_) => panic!("preadv2 unexpectedly succeeded"),
230231
Err(e) => panic!("preadv2 failed with an unexpected error: {:?}", e),
231232
}

0 commit comments

Comments
 (0)