Lines Matching refs:ASSERT_EQ
91 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F()
110 ASSERT_EQ(0, err); in TEST_F()
111 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
121 ASSERT_EQ(-1, err); in TEST_F()
122 ASSERT_EQ(EPERM, errno); in TEST_F()
128 ASSERT_EQ(0, is_signaled); in TEST_F()
129 ASSERT_EQ(0, raise(variant->sig)); in TEST_F()
130 ASSERT_EQ(1, is_signaled); in TEST_F()
140 ASSERT_EQ(1, is_signaled); in TEST_F()
141 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
145 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
188 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F()
189 ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC)); in TEST_F()
202 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F()
206 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
211 ASSERT_EQ(0, err); in TEST_F()
213 ASSERT_EQ(-1, err); in TEST_F()
214 ASSERT_EQ(EPERM, errno); in TEST_F()
220 ASSERT_EQ(0, raise(0)); in TEST_F()
231 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
236 ASSERT_EQ(0, err); in TEST_F()
238 ASSERT_EQ(-1, err); in TEST_F()
239 ASSERT_EQ(EPERM, errno); in TEST_F()
241 ASSERT_EQ(0, raise(0)); in TEST_F()
243 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
245 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
276 ASSERT_EQ(0, pipe2(thread_pipe, O_CLOEXEC)); in TEST()
278 ASSERT_EQ(0, in TEST()
284 ASSERT_EQ(EPERM, pthread_kill(no_sandbox_thread, 0)); in TEST()
285 ASSERT_EQ(1, write(thread_pipe[1], ".", 1)); in TEST()
287 ASSERT_EQ(0, pthread_create(&scoped_thread, NULL, thread_func, NULL)); in TEST()
288 ASSERT_EQ(0, pthread_kill(scoped_thread, 0)); in TEST()
289 ASSERT_EQ(1, write(thread_pipe[1], ".", 1)); in TEST()
390 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F()
391 ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC)); in TEST_F()
405 ASSERT_EQ(0, setup_signal_handler(SIGURG)); in TEST_F()
410 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
411 ASSERT_EQ(0, connect(client_socket, &server_address.unix_addr, in TEST_F()
418 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
420 ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB)); in TEST_F()
422 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F()
426 ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1)); in TEST_F()
430 ASSERT_EQ(0, signal_received); in TEST_F()
437 ASSERT_EQ(1, signal_received); in TEST_F()
447 ASSERT_EQ(0, bind(server_socket, &server_address.unix_addr, in TEST_F()
449 ASSERT_EQ(0, listen(server_socket, backlog)); in TEST_F()
450 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
462 ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child)); in TEST_F()
467 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
470 ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1)); in TEST_F()
472 ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB)); in TEST_F()
475 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
478 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()