Lines Matching refs:server_fd
10 static int run_test(int cgroup_fd, int server_fd, bool classid) in run_test() argument
19 port = get_socket_local_port(server_fd); in run_test()
39 fd = connect_to_fd_opts(server_fd, NULL); in run_test()
56 int server_fd, client_fd, cgroup_fd; in test_cgroup_v1v2() local
59 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_cgroup_v1v2()
60 if (!ASSERT_GE(server_fd, 0, "server_fd")) in test_cgroup_v1v2()
62 client_fd = connect_to_fd_opts(server_fd, &opts); in test_cgroup_v1v2()
64 close(server_fd); in test_cgroup_v1v2()
68 close(server_fd); in test_cgroup_v1v2()
74 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_cgroup_v1v2()
75 if (!ASSERT_GE(server_fd, 0, "server_fd")) { in test_cgroup_v1v2()
79 ASSERT_OK(run_test(cgroup_fd, server_fd, false), "cgroup-v2-only"); in test_cgroup_v1v2()
82 ASSERT_OK(run_test(cgroup_fd, server_fd, true), "cgroup-v1v2"); in test_cgroup_v1v2()
84 close(server_fd); in test_cgroup_v1v2()