Skip to content

Commit

Permalink
enable errno tests for posix socket rev and send
Browse files Browse the repository at this point in the history
b/321999529

Change-Id: Ie42064454ba48befe60e649c812c67dc9cba96c4
  • Loading branch information
haozheng-cobalt committed May 1, 2024
1 parent cdca0fb commit 894c72f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions starboard/nplb/posix_compliance/posix_socket_send_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ TEST(PosixSocketSendTest, RainyDaySendToClosedSocket) {
EXPECT_TRUE(pthread_join(send_thread, &thread_result) == 0);

EXPECT_TRUE(errno == ECONNRESET || errno == ENETRESET || errno == EPIPE ||
errno == ENOTCONN // errno on Windows
|| errno == EINPROGRESS // errno on Evergreen);
errno == ENOTCONN // errno on Windows
|| errno == EINPROGRESS // errno on Evergreen
);
SB_DLOG(INFO) << "Failed to send, errno = " << errno;

// Clean up the server socket.
Expand Down
3 changes: 2 additions & 1 deletion starboard/nplb/posix_compliance/posix_socket_sendto_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ TEST(PosixSocketSendtoTest, RainyDaySendToClosedSocket) {

EXPECT_TRUE(errno == ECONNRESET || errno == ENETRESET || errno == EPIPE ||
errno == ENOTCONN // errno on Windows
|| errno == EINPROGRESS // errno on Evergreen);
|| errno == EINPROGRESS // errno on Evergreen
);
SB_DLOG(INFO) << "Failed to send, errno = " << errno;

// Clean up the server socket.
Expand Down

0 comments on commit 894c72f

Please sign in to comment.