|
|
@ -131,8 +131,9 @@ static void test_no_op_with_port_and_start(void) { |
|
|
|
grpc_udp_server_destroy(&exec_ctx, s, NULL); |
|
|
|
grpc_udp_server_destroy(&exec_ctx, s, NULL); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
|
|
|
|
|
|
|
|
/* The server had a single FD, which should have been orphaned. */ |
|
|
|
/* The server had a single FD, which is orphaned once in *
|
|
|
|
GPR_ASSERT(g_number_of_orphan_calls == 1); |
|
|
|
* deactivated_all_ports, and once in grpc_udp_server_destroy. */ |
|
|
|
|
|
|
|
GPR_ASSERT(g_number_of_orphan_calls == 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void test_receive(int number_of_clients) { |
|
|
|
static void test_receive(int number_of_clients) { |
|
|
@ -196,8 +197,9 @@ static void test_receive(int number_of_clients) { |
|
|
|
grpc_udp_server_destroy(&exec_ctx, s, NULL); |
|
|
|
grpc_udp_server_destroy(&exec_ctx, s, NULL); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
|
|
|
|
|
|
|
|
/* The server had a single FD, which should have been orphaned. */ |
|
|
|
/* The server had a single FD, which is orphaned once in *
|
|
|
|
GPR_ASSERT(g_number_of_orphan_calls == 1); |
|
|
|
* deactivated_all_ports, and once in grpc_udp_server_destroy. */ |
|
|
|
|
|
|
|
GPR_ASSERT(g_number_of_orphan_calls == 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *p, |
|
|
|
static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *p, |
|
|
|