Searched refs:connect_fd (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/landlock/ |
H A D | net_test.c | 493 int connect_fd, ret; in test_bind_and_connect() local 499 connect_fd = socket_variant(srv); in test_bind_and_connect() 500 ASSERT_LE(0, connect_fd); in test_bind_and_connect() 501 ret = connect_variant(connect_fd, srv); in test_bind_and_connect() 509 EXPECT_EQ(1, write(connect_fd, ".", 1)); in test_bind_and_connect() 512 EXPECT_EQ(0, close(connect_fd)); in test_bind_and_connect() 740 int connect_fd, ret; in TEST_F() local 745 connect_fd = socket_variant(&self->srv0); in TEST_F() 746 ASSERT_LE(0, connect_fd); in TEST_F() 747 EXPECT_EQ(0, connect_variant(connect_fd, &self->srv0)); in TEST_F() [all …]
|