Lines Matching refs:ASSERT_EQ

79 	ASSERT_EQ(WIFEXITED(info.si_status), true);  in TEST()
80 ASSERT_EQ(WEXITSTATUS(info.si_status), 0); in TEST()
83 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
84 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST()
85 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
104 ASSERT_EQ(pipe(pfd), 0); in TEST()
113 ASSERT_EQ(read(pfd[0], buf, 1), 1); in TEST()
120 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED, NULL), 0); in TEST()
121 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
122 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST()
123 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
125 ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGCONT, NULL, 0), 0); in TEST()
127 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WCONTINUED, NULL), 0); in TEST()
128 ASSERT_EQ(write(pfd[1], "C", 1), 1); in TEST()
130 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
131 ASSERT_EQ(info.si_code, CLD_CONTINUED); in TEST()
132 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
134 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WUNTRACED, NULL), 0); in TEST()
135 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
136 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST()
137 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
139 ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGKILL, NULL, 0), 0); in TEST()
141 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL), 0); in TEST()
142 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
143 ASSERT_EQ(info.si_code, CLD_KILLED); in TEST()
144 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
172 ASSERT_EQ(errno, EINVAL); in TEST()
178 ASSERT_EQ(errno, ECHILD); in TEST()
192 ASSERT_EQ(errno, EINVAL); in TEST()
206 ASSERT_EQ(errno, EAGAIN); in TEST()
214 ASSERT_EQ(ret, 0); in TEST()
216 ASSERT_EQ(fcntl(pidfd, F_SETFL, (flags & ~O_NONBLOCK)), 0); in TEST()
218 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED, NULL), 0); in TEST()
219 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
220 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST()
221 ASSERT_EQ(info.si_pid, parent_tid); in TEST()
223 ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGCONT, NULL, 0), 0); in TEST()
225 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WEXITED, NULL), 0); in TEST()
226 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST()
227 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST()
228 ASSERT_EQ(info.si_pid, parent_tid); in TEST()