From 760a68e791ff1c2f44b2d29b5f6b9788c83c6829 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 4 Oct 2023 09:47:40 -0700 Subject: [PATCH] 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. --- tests/io/read_write.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/io/read_write.rs b/tests/io/read_write.rs index 82b8c9d3a..2fe537613 100644 --- a/tests/io/read_write.rs +++ b/tests/io/read_write.rs @@ -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), }