Lines Matching refs:pid
194 pid_t pid; in TEST() local
195 ASSERT_EQ(0, posix_spawn(&pid, eth.GetArg0(), nullptr, nullptr, eth.GetArgs(), nullptr)); in TEST()
196 AssertChildExited(pid, 0); in TEST()
202 pid_t pid; in TEST() local
203 ASSERT_EQ(0, posix_spawn(&pid, eth.GetArg0(), nullptr, nullptr, eth.GetArgs(), nullptr)); in TEST()
204 AssertChildExited(pid, 127); in TEST()
210 pid_t pid; in TEST() local
211 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), nullptr, nullptr, eth.GetArgs(), nullptr)); in TEST()
212 AssertChildExited(pid, 0); in TEST()
218 pid_t pid; in TEST() local
219 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), nullptr, nullptr, eth.GetArgs(), nullptr)); in TEST()
220 AssertChildExited(pid, 127); in TEST()
227 pid_t pid; in TEST() local
228 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), nullptr, nullptr, eth.GetArgs(), eth.GetEnv())); in TEST()
229 AssertChildExited(pid, 66); in TEST()
248 pid_t pid; in TEST() local
249 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), &fa, nullptr, eth.GetArgs(), eth.GetEnv())); in TEST()
257 AssertChildExited(pid, 0); in TEST()
280 pid_t pid; in CatFileToString() local
281 ASSERT_EQ(0, posix_spawnp(&pid, eth.GetArg0(), &fa, sa, eth.GetArgs(), nullptr)); in CatFileToString()
287 AssertChildExited(pid, 0); in CatFileToString()
291 pid_t pid; member
301 ASSERT_EQ(4, sscanf(content.c_str(), "%d (cat) %*c %d %d %d", &ps->pid, &ps->ppid, &ps->pgrp, in GetChildStat()
377 ASSERT_EQ(ps.pid, ps.pgrp); in TEST()
464 pid_t pid = fork(); in TEST() local
465 ASSERT_NE(-1, pid); in TEST()
467 if (pid == 0) { in TEST()
507 AssertChildExited(pid, 99); in TEST()