Lines Matching refs:child
63 * issues stream-specific hooks before fork, while the child is running and
64 * after the child terminates. We then provide test cases that just call
418 atf_process_child_t child;
425 RE(atf_process_fork(&child, child_print, outfs->m_sb_ptr,
428 outfs->process(out, &child);
430 errfs->process(err, &child);
431 RE(atf_process_child_wait(&child, &status));
685 * Test cases for the "child" type.
705 "stored in the child type");
710 atf_process_child_t child;
717 RE(atf_process_fork(&child, child_report_pid, &outsb, &errsb, NULL));
718 ATF_CHECK_EQ(read(atf_process_child_stdout(&child), &pid, sizeof(pid)),
720 printf("Expected PID: %d\n", (int)atf_process_child_pid(&child));
722 ATF_CHECK_EQ(atf_process_child_pid(&child), pid);
724 RE(atf_process_child_wait(&child, &status));
749 atf_process_child_t child;
767 RE_ABORT(atf_process_fork(&child, child_loop, &outsb, &errsb, NULL));
782 atf_error_t err = atf_process_child_wait(&child, &status);
801 kill(atf_process_child_pid(&child), SIGTERM);
803 RE_ABORT(atf_process_child_wait(&child, &status));
821 atf_process_child_t child;
829 RE(atf_process_fork(&child, child_spawn_loop_and_wait_eintr,
836 /* Wait until the child process performs the wait call. This is
841 printf("Waiting for child to issue wait(2)\n");
842 ATF_REQUIRE(read(atf_process_child_stdout(&child), buf,
847 printf("Interrupting child's wait(2) call\n");
848 kill(atf_process_child_pid(&child), SIGHUP);
850 printf("Waiting for child's completion\n");
851 RE(atf_process_child_wait(&child, &status));
1003 atf_tc_set_md_var(tc, "descr", "Tests forking a child, with "
1014 atf_process_child_t child;
1017 RE(atf_process_fork(&child, child_cookie, &outsb, &errsb, NULL));
1018 RE(atf_process_child_wait(&child, &status));
1027 atf_process_child_t child;
1031 RE(atf_process_fork(&child, child_cookie, &outsb, &errsb, &dummy_int));
1032 RE(atf_process_child_wait(&child, &status));
1048 atf_tc_set_md_var(tc, "descr", "Tests forking a child, with " \
1115 /* Add the tests for the "child" type. */