diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2019-11-11 15:49:49 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-11 15:51:10 -0800 |
commit | 2b0e4dc6aa7fb8a3f619220b72537a8fff2f95b4 (patch) | |
tree | 73d71827b7b768afd1d3695d27dbd68968365930 /test/syscalls/linux | |
parent | e09e7bf72f3e0208c7f557d9931407ee8729ebb2 (diff) |
Remove obsolete TODO. This is now fixed.
PiperOrigin-RevId: 279835100
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r-- | test/syscalls/linux/tcp_socket.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syscalls/linux/tcp_socket.cc b/test/syscalls/linux/tcp_socket.cc index bfc77ffc2..99863b0ed 100644 --- a/test/syscalls/linux/tcp_socket.cc +++ b/test/syscalls/linux/tcp_socket.cc @@ -425,6 +425,11 @@ TEST_P(TcpSocketTest, PollWithFullBufferBlocks) { } // The last error should have been EWOULDBLOCK. ASSERT_EQ(errno, EWOULDBLOCK); + + // Now polling on the FD with a timeout should return 0 corresponding to no + // FDs ready. + struct pollfd poll_fd = {s_, POLLOUT, 0}; + EXPECT_THAT(RetryEINTR(poll)(&poll_fd, 1, 10), SyscallSucceedsWithValue(0)); } TEST_P(TcpSocketTest, MsgTrunc) { |