Lines Matching +full:tcs +full:- +full:wait

34 #include <sys/wait.h>
46 #include <atf-c++.hpp>
92 /// on-disk files and we want to leave them in place so that the parent process
152 const int exit_code = ::system("rm *") == -1 in child_delete_all()
260 if (pid == -1) { in child_spawn_blocking_child()
288 if (utils::getenv("HOME").get() == "fake-value") { in child_validate_isolation()
366 if (::kill(pid, SIGCONT) != -1 || errno != ESRCH) { in ensure_dead()
368 std::cout << "Subprocess not dead yet; retrying wait\n"; in ensure_dead()
369 --attempts; in ensure_dead()
426 const int exit_status = exp_exit_statuses.find(original_pid)->second; in ATF_TEST_CASE_BODY()
428 original_pid)->second; in ATF_TEST_CASE_BODY()
482 const fs::path stdout_file("custom-stdout.txt"); in ATF_TEST_CASE_BODY()
483 const fs::path stderr_file("custom-stderr.txt"); in ATF_TEST_CASE_BODY()
633 executor::exit_handle exit_handle = handle.wait(exec_handle); in ATF_TEST_CASE_BODY()
671 exit_handle.end_time() - exit_handle.start_time(); in ATF_TEST_CASE_BODY()
682 exit_handle.end_time() - exit_handle.start_time(); in ATF_TEST_CASE_BODY()
695 set_md_var("require.config", "unprivileged-user"); in ATF_TEST_CASE_HEAD()
703 get_config_var("unprivileged-user")); in ATF_TEST_CASE_BODY()
759 /// spawns a bunch of tests that block indefinitely and tries to wait for their
771 ATF_REQUIRE(pid != -1); in do_signal_handling_test()
827 // Wait for processes. in do_signal_handling_test()
829 ATF_REQUIRE(::unlink(cookie) != -1); in do_signal_handling_test()
831 ATF_REQUIRE(::kill(pid, signo) != -1); in do_signal_handling_test()
835 ATF_REQUIRE(::waitpid(pid, &status, 0) != -1); in do_signal_handling_test()
862 utils::setenv("HOME", "fake-value"); in ATF_TEST_CASE_BODY()
920 ATF_INIT_TEST_CASES(tcs) in ATF_INIT_TEST_CASES() argument
922 ATF_ADD_TEST_CASE(tcs, integration__run_one); in ATF_INIT_TEST_CASES()
923 ATF_ADD_TEST_CASE(tcs, integration__run_many); in ATF_INIT_TEST_CASES()
925 ATF_ADD_TEST_CASE(tcs, integration__parameters_and_output); in ATF_INIT_TEST_CASES()
926 ATF_ADD_TEST_CASE(tcs, integration__custom_output_files); in ATF_INIT_TEST_CASES()
927 ATF_ADD_TEST_CASE(tcs, integration__timestamps); in ATF_INIT_TEST_CASES()
928 ATF_ADD_TEST_CASE(tcs, integration__files); in ATF_INIT_TEST_CASES()
930 ATF_ADD_TEST_CASE(tcs, integration__followup); in ATF_INIT_TEST_CASES()
932 ATF_ADD_TEST_CASE(tcs, integration__output_files_always_exist); in ATF_INIT_TEST_CASES()
933 ATF_ADD_TEST_CASE(tcs, integration__timeouts); in ATF_INIT_TEST_CASES()
934 ATF_ADD_TEST_CASE(tcs, integration__unprivileged_user); in ATF_INIT_TEST_CASES()
935 ATF_ADD_TEST_CASE(tcs, integration__auto_cleanup); in ATF_INIT_TEST_CASES()
936 ATF_ADD_TEST_CASE(tcs, integration__signal_handling); in ATF_INIT_TEST_CASES()
937 ATF_ADD_TEST_CASE(tcs, integration__isolate_child_is_called); in ATF_INIT_TEST_CASES()
938 ATF_ADD_TEST_CASE(tcs, integration__process_group_is_terminated); in ATF_INIT_TEST_CASES()
939 ATF_ADD_TEST_CASE(tcs, integration__prevent_clobbering_control_files); in ATF_INIT_TEST_CASES()