Home | History | Annotate | Download | only in src

Lines Matching full:death

32 // This file implements death tests.
34 #include "gtest/gtest-death-test.h"
73 // The default death test style.
79 "Indicates how to run a death test in a forked child process: "
81 "from the beginning, running only the specific death test) or "
82 "\"fast\" (child process runs the death test immediately "
88 "Instructs to use fork()/_exit() instead of clone() in death tests. "
101 "the single death test to run, and a file descriptor to "
105 "death test. FOR INTERNAL USE ONLY.");
140 // Utilities needed for death tests.
175 // Generates a textual failure message when a death test finds more than
181 msg << "Death tests use fork(), which is unsafe particularly"
191 // Flag characters for reporting a death test that did not die.
197 // An enumeration describing all of the possible ways that a death test can
209 // exec-style death test child process, in which case the error
215 // death test child process, which operates on a very small stack. Use
268 // This is called from a death test parent process to read a failure
269 // message from the death test child process and log it with the FATAL
288 GTEST_LOG_(FATAL) << "Error while reading death test internal: "
293 // Death test constructor. Increments the running death test count
298 DeathTestAbort("Cannot run a death test outside of a TEST or "
303 // Creates and returns a death test by dispatching to the current
304 // death test factory.
321 // Provides cross platform implementation for some death functionality.
352 // Called in the parent process only. Reads the result code of the death
365 // True if the death test child process has been successfully spawned.
369 // How the death test concluded.
381 // Called in the parent process only. Reads the result code of the death
390 // failure of the death test) or until the pipe is closed (signifying
414 GTEST_LOG_(FATAL) << "Death test child process reported "
419 GTEST_LOG_(FATAL) << "Read from death test child process failed: "
426 // Signals that the death test code which should have exited, didn't.
427 // Should be called only in a death test child process.
431 // The parent process considers the death test to be a failure if
450 // Returns an indented copy of stderr output for a death test.
451 // This makes distinguishing death test output lines from regular log lines
457 ret += "[ DEATH ] ";
468 // Assesses the success or failure of a death test, using both private
472 // outcome: An enumeration describing how the death test
473 // concluded: DIED, LIVED, THREW, or RETURNED. The death test
480 // the test's captured standard error output; the death test
485 // this particular death test, which fails if it is false
489 // reported. Also sets the last death test message string.
499 buffer << "Death test: " << statement() << "\n";
540 // WindowsDeathTest implements death tests on Windows. Due to the
541 // specifics of starting new processes on Windows, death tests there are
581 // The name of the file in which the death test is located.
583 // The line number on which the death test is located.
596 // Waits for the child in a death test to exit, returning its exit
639 // The AssumeRole process for a Windows death test. It creates a child
641 // death test. The child process is given the --gtest_filter and
643 // current death test only.
659 // a death test.
751 // PID of child process during death test; 0 in the child process itself.
760 // Waits for the child in a death test to exit, returning its exit
775 // A concrete death test class that forks, then immediately runs the test
784 // The AssumeRole process for a fork-and-run death test. It implements a
802 // there are multiple threads running before the death test, and another
817 // down in death test subprocesses.
828 // A concrete death test class that forks and re-executes the main
830 // only this specific death test to be run.
838 // The name of the file in which the death test is located.
840 // The line number on which the death test is located.
877 // threadsafe-style death test process.
897 // The main function for a threadsafe-style death test child process.
945 // A threadsafe implementation of fork(2) for threadsafe-style death tests
982 // The AssumeRole process for a fork-and-exec death test. It re-executes the
985 // death test to be re-run.
1051 "Death test count (%d) somehow exceeded expected maximum (%d)",
1082 "Unknown death test style \"%s\" encountered",