summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/udp_socket.cc
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2021-06-22 01:06:02 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-22 01:10:24 -0700
commit04a81bc33664b7f7b3da0666b9296e5aaf0f63e7 (patch)
treed0850be40762692f52bdb0775fcc067a51998773 /test/syscalls/linux/udp_socket.cc
parentc6da1b0022484561cf1a37b240b670120936393b (diff)
Trigger poll/epoll events on zero-length hostinet sendmsg
Fixes #2726 PiperOrigin-RevId: 380753516
Diffstat (limited to 'test/syscalls/linux/udp_socket.cc')
-rw-r--r--test/syscalls/linux/udp_socket.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/syscalls/linux/udp_socket.cc b/test/syscalls/linux/udp_socket.cc
index 2b687c198..b40598767 100644
--- a/test/syscalls/linux/udp_socket.cc
+++ b/test/syscalls/linux/udp_socket.cc
@@ -1429,12 +1429,8 @@ TEST_P(UdpSocketTest, FIONREADZeroLengthPacket) {
sendto(sock_.get(), buf + i * psize, 0, 0, bind_addr_, addrlen_),
SyscallSucceedsWithValue(0));
- // TODO(gvisor.dev/issue/2726): sending a zero-length message to a hostinet
- // socket does not cause a poll event to be triggered.
- if (!IsRunningWithHostinet()) {
- ASSERT_THAT(RetryEINTR(poll)(&pfd, 1, /*timeout=*/1000),
- SyscallSucceedsWithValue(1));
- }
+ ASSERT_THAT(RetryEINTR(poll)(&pfd, 1, /*timeout=*/1000),
+ SyscallSucceedsWithValue(1));
// Check that regardless of how many packets are in the queue, the size
// reported is that of a single packet.