mirror of
https://github.com/wassname/ray.git
synced 2026-09-13 13:02:57 +08:00
Update logging and check macros. (#1627)
* Update logging and check macros. * Fix linting. * Fix RAY_DCHECK and unused variable. * Fix linting
This commit is contained in:
committed by
Philipp Moritz
parent
e7df293946
commit
0fcceef772
@@ -31,7 +31,7 @@ void wait_for_pollin(int fd) {
|
||||
poll_list[0].fd = fd;
|
||||
poll_list[0].events = POLLIN;
|
||||
int retval = poll(poll_list, (unsigned long) 1, -1);
|
||||
CHECK(retval > 0);
|
||||
RAY_CHECK(retval > 0);
|
||||
}
|
||||
|
||||
int test_done_handler(event_loop *loop, timer_id id, void *context) {
|
||||
@@ -66,7 +66,7 @@ plasma_mock *init_plasma_mock(plasma_mock *remote_mock) {
|
||||
std::string manager_socket_name = bind_ipc_sock_retry(
|
||||
plasma_manager_socket_name_format, &mock->manager_local_fd);
|
||||
|
||||
CHECK(mock->manager_local_fd >= 0 && mock->local_store >= 0);
|
||||
RAY_CHECK(mock->manager_local_fd >= 0 && mock->local_store >= 0);
|
||||
|
||||
mock->state = PlasmaManagerState_init(plasma_store_socket_name,
|
||||
manager_socket_name.c_str(),
|
||||
@@ -252,7 +252,7 @@ TEST object_notifications_test(void) {
|
||||
int fd[2];
|
||||
socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
|
||||
int flags = fcntl(fd[1], F_GETFL, 0);
|
||||
CHECK(fcntl(fd[1], F_SETFL, flags | O_NONBLOCK) == 0);
|
||||
RAY_CHECK(fcntl(fd[1], F_SETFL, flags | O_NONBLOCK) == 0);
|
||||
|
||||
ObjectID object_id = ObjectID::from_random();
|
||||
ObjectInfoT info;
|
||||
|
||||
Reference in New Issue
Block a user