Lines Matching refs:pid
536 pid_t pid; in TEST_F() local
566 pid = fork(); in TEST_F()
567 if (pid == -1) in TEST_F()
568 ASSERT_EQ(pid, 0); in TEST_F()
569 if (pid != 0) { in TEST_F()
570 waitpid(pid, &ret, 0); in TEST_F()
614 pid_t pid; in TEST_F() local
644 pid = fork(); in TEST_F()
645 if (pid == -1) in TEST_F()
646 ASSERT_EQ(pid, 0); in TEST_F()
647 if (pid != 0) { in TEST_F()
648 waitpid(pid, &ret, 0); in TEST_F()
1996 pid_t pid; in TEST_F() local
2026 pid = fork(); in TEST_F()
2027 if (pid == -1) in TEST_F()
2028 ASSERT_EQ(pid, 0); in TEST_F()
2029 if (!pid) { in TEST_F()
2044 EXPECT_EQ(0, kill(pid, SIGTERM)); in TEST_F()
2045 EXPECT_EQ(pid, waitpid(pid, &status, 0)); in TEST_F()