Esempio n. 1
0
static void
test_main(void)
{
	test_unix_socket(false);
	test_unix_socket(true);
	test_unix_read_write_not_connected();
	test_unix_bind(false);
	test_unix_bind(true);
	test_unix_listen_connect_accept_write_read();

	exit(0);
}
int main(int argc, char **argv) {
  grpc_test_init(argc, argv);
  grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
  grpc_iomgr_init(&exec_ctx);
  grpc_iomgr_start(&exec_ctx);
  test_unix_socket();
  test_unix_socket_path_name_too_long();
  grpc_executor_shutdown(&exec_ctx);
  grpc_iomgr_shutdown(&exec_ctx);
  grpc_exec_ctx_finish(&exec_ctx);
  return 0;
}