| ... | ... | @@ -2007,7 +2007,8 @@ test "accept/connect/send/recv" { |
| 2007 | 2007 | try testing.expectEqual(linux.io_uring_cqe{ |
| 2008 | 2008 | .user_data = 0xffffffff, |
| 2009 | 2009 | .res = buffer_recv.len, |
| 2010 | | .flags = 0, |
| 2010 | // ignore IORING_CQE_F_SOCK_NONEMPTY since it is only set on some systems |
| 2011 | .flags = cqe_recv.flags & linux.IORING_CQE_F_SOCK_NONEMPTY, |
| 2011 | 2012 | }, cqe_recv); |
| 2012 | 2013 | |
| 2013 | 2014 | try testing.expectEqualSlices(u8, buffer_send[0..buffer_recv.len], buffer_recv[0..]); |
| ... | ... | @@ -2089,7 +2090,8 @@ test "sendmsg/recvmsg" { |
| 2089 | 2090 | try testing.expectEqual(linux.io_uring_cqe{ |
| 2090 | 2091 | .user_data = 0x22222222, |
| 2091 | 2092 | .res = buffer_recv.len, |
| 2092 | | .flags = 0, |
| 2093 | // ignore IORING_CQE_F_SOCK_NONEMPTY since it is set non-deterministically |
| 2094 | .flags = cqe_recvmsg.flags & linux.IORING_CQE_F_SOCK_NONEMPTY, |
| 2093 | 2095 | }, cqe_recvmsg); |
| 2094 | 2096 | |
| 2095 | 2097 | try testing.expectEqualSlices(u8, buffer_send[0..buffer_recv.len], buffer_recv[0..]); |