Lines Matching refs:exit_handle

385     executor::exit_handle exit_handle = handle.wait_any();  in ATF_TEST_CASE_BODY()  local
386 ATF_REQUIRE_EQ(exec_handle.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
387 require_exit(41, exit_handle.status()); in ATF_TEST_CASE_BODY()
388 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
423 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
424 const int original_pid = exit_handle.original_pid(); in ATF_TEST_CASE_BODY()
430 require_exit(exit_status, exit_handle.status()); in ATF_TEST_CASE_BODY()
432 ATF_REQUIRE_EQ(start_time, exit_handle.start_time()); in ATF_TEST_CASE_BODY()
433 ATF_REQUIRE_EQ(end_time, exit_handle.end_time()); in ATF_TEST_CASE_BODY()
435 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
438 exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
440 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
442 exit_handle.work_directory().str())); in ATF_TEST_CASE_BODY()
456 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
458 ATF_REQUIRE_EQ(exec_handle.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
460 require_exit(EXIT_SUCCESS, exit_handle.status()); in ATF_TEST_CASE_BODY()
462 const fs::path stdout_file = exit_handle.stdout_file(); in ATF_TEST_CASE_BODY()
465 const fs::path stderr_file = exit_handle.stderr_file(); in ATF_TEST_CASE_BODY()
469 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
490 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
492 ATF_REQUIRE_EQ(exec_handle.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
494 require_exit(EXIT_SUCCESS, exit_handle.status()); in ATF_TEST_CASE_BODY()
496 ATF_REQUIRE_EQ(stdout_file, exit_handle.stdout_file()); in ATF_TEST_CASE_BODY()
497 ATF_REQUIRE_EQ(stderr_file, exit_handle.stderr_file()); in ATF_TEST_CASE_BODY()
499 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
525 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
527 require_exit(70, exit_handle.status()); in ATF_TEST_CASE_BODY()
529 ATF_REQUIRE_EQ(start_time, exit_handle.start_time()); in ATF_TEST_CASE_BODY()
530 ATF_REQUIRE_EQ(end_time, exit_handle.end_time()); in ATF_TEST_CASE_BODY()
531 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
544 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
547 (exit_handle.work_directory() / "cookie.12345").str())); in ATF_TEST_CASE_BODY()
549 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
551 ATF_REQUIRE(!atf::utils::file_exists(exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
552 ATF_REQUIRE(!atf::utils::file_exists(exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
553 ATF_REQUIRE(!atf::utils::file_exists(exit_handle.work_directory().str())); in ATF_TEST_CASE_BODY()
565 executor::exit_handle exit_1_handle = handle.wait_any(); in ATF_TEST_CASE_BODY()
569 executor::exit_handle exit_2_handle = handle.wait_any(); in ATF_TEST_CASE_BODY()
582 executor::exit_handle exit_3_handle = handle.wait_any(); in ATF_TEST_CASE_BODY()
633 executor::exit_handle exit_handle = handle.wait(exec_handle); in ATF_TEST_CASE_BODY() local
634 ATF_REQUIRE(fs::exists(exit_handle.stdout_file())); in ATF_TEST_CASE_BODY()
635 ATF_REQUIRE(fs::exists(exit_handle.stderr_file())); in ATF_TEST_CASE_BODY()
636 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
660 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
661 ATF_REQUIRE_EQ(exec_handle3.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
662 require_exit(15, exit_handle.status()); in ATF_TEST_CASE_BODY()
663 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
667 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
668 ATF_REQUIRE_EQ(exec_handle1.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
669 ATF_REQUIRE(!exit_handle.status()); in ATF_TEST_CASE_BODY()
671 exit_handle.end_time() - exit_handle.start_time(); in ATF_TEST_CASE_BODY()
674 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
678 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
679 ATF_REQUIRE_EQ(exec_handle2.pid(), exit_handle.original_pid()); in ATF_TEST_CASE_BODY()
680 ATF_REQUIRE(!exit_handle.status()); in ATF_TEST_CASE_BODY()
682 exit_handle.end_time() - exit_handle.start_time(); in ATF_TEST_CASE_BODY()
685 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
708 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
710 exit_handle.stdout_file().str(), in ATF_TEST_CASE_BODY()
712 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
734 executor::exit_handle exit_handle1 = handle.wait_any(); in ATF_TEST_CASE_BODY()
739 executor::exit_handle exit_handle2 = handle.wait_any(); in ATF_TEST_CASE_BODY()
790 executor::exit_handle exit_handle = handle.wait_any(); in do_signal_handling_test() local
793 if (exit_handle.status()) { in do_signal_handling_test()
794 if (exit_handle.status().get().signaled() && in do_signal_handling_test()
795 exit_handle.status().get().termsig() == SIGKILL) { in do_signal_handling_test()
799 << exit_handle.status().get(); in do_signal_handling_test()
806 exit_handle.cleanup(); in do_signal_handling_test()
866 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
867 require_exit(EXIT_SUCCESS, exit_handle.status()); in ATF_TEST_CASE_BODY()
868 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
882 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
883 require_exit(EXIT_SUCCESS, exit_handle.status()); in ATF_TEST_CASE_BODY()
884 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
908 executor::exit_handle exit_handle = handle.wait_any(); in ATF_TEST_CASE_BODY() local
909 require_exit(EXIT_SUCCESS, exit_handle.status()); in ATF_TEST_CASE_BODY()
911 (exit_handle.control_directory() / "exec_was_called").str())); in ATF_TEST_CASE_BODY()
913 (exit_handle.work_directory() / "exec_was_called").str())); in ATF_TEST_CASE_BODY()
914 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()