Lines Matching refs:ipc_sockets
127 int ipc_sockets[2]; in FIXTURE_SETUP() local
173 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
185 close(ipc_sockets[0]); in FIXTURE_SETUP()
190 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
193 close(ipc_sockets[1]); in FIXTURE_SETUP()
199 close(ipc_sockets[1]); in FIXTURE_SETUP()
200 ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1); in FIXTURE_SETUP()
201 close(ipc_sockets[0]); in FIXTURE_SETUP()
203 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
214 close(ipc_sockets[0]); in FIXTURE_SETUP()
219 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
222 close(ipc_sockets[1]); in FIXTURE_SETUP()
228 close(ipc_sockets[1]); in FIXTURE_SETUP()
229 ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1); in FIXTURE_SETUP()
230 close(ipc_sockets[0]); in FIXTURE_SETUP()