Lines Matching refs:exit_handle
190 static executor::exit_handle
201 const executor::exit_handle exit_handle = executor_handle.wait(exec_handle); in generate_core() local
203 if (!exit_handle.status()) in generate_core()
205 const process::status& status = exit_handle.status().get(); in generate_core()
210 return exit_handle; in generate_core()
371 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
372 INV(exit_handle.status()); in ATF_TEST_CASE_BODY()
373 INV(exit_handle.status().get().coredump()); in ATF_TEST_CASE_BODY()
376 utils::dump_stacktrace(fs::path("short"), handle, exit_handle); in ATF_TEST_CASE_BODY()
381 ATF_REQUIRE(!atf::utils::grep_file("#0", exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
382 ATF_REQUIRE( atf::utils::grep_file("#0", exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
383 ATF_REQUIRE(!atf::utils::grep_file("#1", exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
384 ATF_REQUIRE( atf::utils::grep_file("#1", exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
386 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
400 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
401 INV(exit_handle.status()); in ATF_TEST_CASE_BODY()
402 INV(exit_handle.status().get().coredump()); in ATF_TEST_CASE_BODY()
404 utils::dump_stacktrace(fs::path("short"), handle, exit_handle); in ATF_TEST_CASE_BODY()
409 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
411 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
413 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
415 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
417 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
419 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
434 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
438 exit_handle.status().get(), in ATF_TEST_CASE_BODY()
439 exit_handle.work_directory()); in ATF_TEST_CASE_BODY()
448 utils::dump_stacktrace(fs::path("fake"), handle, exit_handle); in ATF_TEST_CASE_BODY()
450 atf::utils::cat_file(exit_handle.stdout_file().str(), "stdout: "); in ATF_TEST_CASE_BODY()
451 atf::utils::cat_file(exit_handle.stderr_file().str(), "stderr: "); in ATF_TEST_CASE_BODY()
453 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
455 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
467 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
469 utils::dump_stacktrace(fs::path("fake"), handle, exit_handle); in ATF_TEST_CASE_BODY()
473 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
475 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
489 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
491 atf::utils::create_file((exit_handle.work_directory() / "fake.core").str(), in ATF_TEST_CASE_BODY()
493 utils::dump_stacktrace(fs::path("fake"), handle, exit_handle); in ATF_TEST_CASE_BODY()
496 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
498 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
500 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
502 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
517 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
519 atf::utils::create_file((exit_handle.work_directory() / "fake.core").str(), in ATF_TEST_CASE_BODY()
521 utils::dump_stacktrace(fs::path("fake"), handle, exit_handle); in ATF_TEST_CASE_BODY()
524 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
526 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
539 executor::exit_handle exit_handle = generate_core(this, "short", handle); in ATF_TEST_CASE_BODY() local
541 atf::utils::create_file(exit_handle.stdout_file().str(), "Pre-stdout"); in ATF_TEST_CASE_BODY()
542 atf::utils::create_file(exit_handle.stderr_file().str(), "Pre-stderr"); in ATF_TEST_CASE_BODY()
544 utils::dump_stacktrace_if_available(fs::path("short"), handle, exit_handle); in ATF_TEST_CASE_BODY()
547 exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
549 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
551 exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
553 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
564 executor::exit_handle exit_handle = handle.wait(exec_handle); in ATF_TEST_CASE_BODY() local
565 INV(!exit_handle.status()); in ATF_TEST_CASE_BODY()
567 utils::dump_stacktrace_if_available(fs::path("short"), handle, exit_handle); in ATF_TEST_CASE_BODY()
568 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stdout_file().str(), "")); in ATF_TEST_CASE_BODY()
569 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stderr_file().str(), "")); in ATF_TEST_CASE_BODY()
571 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()
582 executor::exit_handle exit_handle = handle.wait(exec_handle); in ATF_TEST_CASE_BODY() local
583 INV(exit_handle.status()); in ATF_TEST_CASE_BODY()
584 INV(exit_handle.status().get().exited()); in ATF_TEST_CASE_BODY()
585 INV(exit_handle.status().get().exitstatus() == EXIT_SUCCESS); in ATF_TEST_CASE_BODY()
587 utils::dump_stacktrace_if_available(fs::path("short"), handle, exit_handle); in ATF_TEST_CASE_BODY()
588 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stdout_file().str(), "")); in ATF_TEST_CASE_BODY()
589 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stderr_file().str(), "")); in ATF_TEST_CASE_BODY()
591 exit_handle.cleanup(); in ATF_TEST_CASE_BODY()