diff --git a/test/core/iomgr/fd_posix_test.cc b/test/core/iomgr/fd_posix_test.cc index 0cb032f099a..e8f6c593a6e 100644 --- a/test/core/iomgr/fd_posix_test.cc +++ b/test/core/iomgr/fd_posix_test.cc @@ -164,8 +164,7 @@ static void session_read_cb(void* arg, // session // before notify_on_read is called. grpc_fd_notify_on_read(se->em_fd, &se->session_read_closure); } else { - grpc_core::Crash(absl::StrFormat("Unhandled read error %s", - grpc_core::StrError(errno).c_str())); + LOG(FATAL) << "Unhandled read error " << grpc_core::StrError(errno); } } } @@ -330,8 +329,7 @@ static void client_session_write(void* arg, // client } gpr_mu_unlock(g_mu); } else { - grpc_core::Crash(absl::StrFormat("unknown errno %s", - grpc_core::StrError(errno).c_str())); + LOG(FATAL) << "unknown errno " << grpc_core::StrError(errno).c_str(); } } @@ -348,12 +346,10 @@ static void client_start(client* cl, int port) { pfd.events = POLLOUT; pfd.revents = 0; if (poll(&pfd, 1, -1) == -1) { - LOG(ERROR) << "poll() failed during connect; errno=" << errno; - abort(); + LOG(FATAL) << "poll() failed during connect; errno=" << errno; } } else { - grpc_core::Crash( - absl::StrFormat("Failed to connect to the server (errno=%d)", errno)); + LOG(FATAL) << "Failed to connect to the server (errno=" << errno; } }