Lines Matching full:child
29 #include "utils/process/child.ipp"
152 /// Body for a child process that throws an exception.
160 /// Body for a child process that creates a pidfile.
171 /// A child process that returns.
174 /// child before the code returns to the fork() call point.
181 /// A child process that raises an exception.
184 /// child before the code returns to the fork() call point.
266 /// Helper for child tests to validate inheritance of stdout/stderr.
270 /// call fork with the given parameters and then make our child redirect one of
295 std::auto_ptr< process::child > child = process::child::fork_files( in do_inherit_test() local
298 const process::status status = child->wait(); in do_inherit_test()
324 std::cout << "This unflushed message should not propagate to the child"; in child__fork_capture__ok()
325 std::cerr << "This unflushed message should not propagate to the child"; in child__fork_capture__ok()
326 std::auto_ptr< process::child > child = process::child::fork_capture(hook); in child__fork_capture__ok() local
330 std::istream& output = child->output(); in child__fork_capture__ok()
342 process::status status = child->wait(); in child__fork_capture__ok()
368 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY() local
372 std::istream& output = child->output(); in ATF_TEST_CASE_BODY()
375 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
386 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY() local
388 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
399 process::child::fork_capture(child_simple_function< 1, 'A' >); in ATF_TEST_CASE_BODY()
414 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY() local
422 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
434 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY() local
436 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
455 process::child::fork_capture(child_simple_function< 1, 'A' >); in ATF_TEST_CASE_BODY()
470 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
472 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
493 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
495 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
516 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
520 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
531 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
534 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
560 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
568 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
580 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
583 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
602 process::child::fork_files(child_simple_function< 1, 'A' >, in ATF_TEST_CASE_BODY()
618 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
621 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
633 std::auto_ptr< process::child > child = process::child::fork_files( in ATF_TEST_CASE_BODY() local
636 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
653 std::auto_ptr< process::child > child = process::child::spawn_files( in ATF_TEST_CASE_BODY() local
656 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
672 std::auto_ptr< process::child > child = process::child::spawn_files( in ATF_TEST_CASE_BODY() local
675 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
690 std::auto_ptr< process::child > child = process::child::spawn_files( in ATF_TEST_CASE_BODY() local
693 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
710 std::auto_ptr< process::child > child = process::child::spawn_capture( in ATF_TEST_CASE_BODY() local
714 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
716 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
718 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
728 std::auto_ptr< process::child > child = process::child::spawn_capture( in ATF_TEST_CASE_BODY() local
732 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
734 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
736 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
749 std::auto_ptr< process::child > child = process::child::spawn_capture( in ATF_TEST_CASE_BODY() local
753 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
755 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
757 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
759 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
761 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
763 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
765 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
775 std::auto_ptr< process::child > child = process::child::spawn_capture( in ATF_TEST_CASE_BODY() local
779 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
782 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
784 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
793 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY() local
796 const int pid = child->pid(); in ATF_TEST_CASE_BODY()
798 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()