Lines Matching refs:ps
297 static __attribute__((unused)) void GetChildStat(posix_spawnattr_t* sa, ProcStat* ps) { in GetChildStat() argument
301 ASSERT_EQ(4, sscanf(content.c_str(), "%d (cat) %*c %d %d %d", &ps->pid, &ps->ppid, &ps->pgrp, in GetChildStat()
302 &ps->sid)); in GetChildStat()
304 ASSERT_EQ(getpid(), ps->ppid); in GetChildStat()
312 static void __attribute__((unused)) GetChildStatus(posix_spawnattr_t* sa, ProcStatus* ps) { in GetChildStatus() argument
319 if (sscanf(line.c_str(), "SigBlk: %" SCNx64, &ps->sigblk) == 1) saw_blk = true; in GetChildStatus()
320 if (sscanf(line.c_str(), "SigIgn: %" SCNx64, &ps->sigign) == 1) saw_ign = true; in GetChildStatus()
333 ProcStat ps = {}; in TEST() local
334 GetChildStat(&sa, &ps); in TEST()
335 ASSERT_EQ(parent_sid, ps.sid); in TEST()
346 ProcStat ps = {}; in TEST() local
347 GetChildStat(&sa, &ps); in TEST()
348 ASSERT_NE(parent_sid, ps.sid); in TEST()
359 ProcStat ps = {}; in TEST() local
360 GetChildStat(&sa, &ps); in TEST()
361 ASSERT_EQ(parent_pgrp, ps.pgrp); in TEST()
373 ProcStat ps = {}; in TEST() local
374 GetChildStat(&sa, &ps); in TEST()
375 ASSERT_NE(parent_pgrp, ps.pgrp); in TEST()
377 ASSERT_EQ(ps.pid, ps.pgrp); in TEST()
402 ProcStatus ps = {}; in TEST()
403 GetChildStatus(&sa, &ps); in TEST()
409 EXPECT_EQ(expected_blocked, ps.sigblk); in TEST()
413 EXPECT_EQ(expected_ignored, ps.sigign); in TEST()
439 ProcStatus ps = {}; in TEST()
440 GetChildStatus(&sa, &ps); in TEST()
445 EXPECT_EQ(expected_blocked, ps.sigblk); in TEST()
450 EXPECT_EQ(expected_ignored, ps.sigign); in TEST()