Home | History | Annotate | Download | only in gtest

Lines Matching refs:death

32 // This file implements death tests.
34 #include <gtest/gtest-death-test.h>
57 // The default death test style.
63 "Indicates how to run a death test in a forked child process: "
65 "from the beginning, running only the specific death test) or "
66 "\"fast\" (child process runs the death test immediately "
73 "the single death test to run, and a file descriptor to "
77 "death test. FOR INTERNAL USE ONLY.");
102 // Utilities needed for death tests.
127 // Generates a textual failure message when a death test finds more than
133 msg << "Death tests use fork(), which is unsafe particularly"
143 // last death test.
146 // Flag characters for reporting a death test that did not die.
151 // An enumeration describing all of the possible ways that a death test
160 // exec-style death test child process, in which case the the error
165 // This function may be called from a threadsafe-style death test
216 // Death test constructor. Increments the running death test count
221 DeathTestAbort("Cannot run a death test outside of a TEST or "
226 // Creates and returns a death test by dispatching to the current
227 // death test factory.
261 // True if the death test successfully forked.
263 // PID of child process during death test; 0 in the child process itself.
265 // File descriptors for communicating the death test's status byte.
270 // How the death test concluded.
288 // LOG(FATAL) with that message. Called from a death test parent process
289 // to read a failure message from the death test child process.
307 Message() << "Error while reading death test internal: "
312 // Waits for the child in a death test to exit, returning its exit
320 // failure of the death test) or until the pipe is closed (signifying
345 Message() << "Death test child process reported unexpected "
351 Message() << "Read from death test child process failed: "
360 // Assesses the success or failure of a death test, using both private
364 // outcome: an enumeration describing how the death test
365 // concluded: DIED, LIVED, or RETURNED. The death test fails
370 // the test's captured standard error output; the death test
375 // this particular death test, which fails if it is false
393 buffer << "Death test: " << statement_ << "\n";
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
441 // A concrete death test class that forks, then immediately runs the test
450 // The AssumeRole process for a fork-and-run death test. It implements a
468 // there are multiple threads running before the death test, and another
491 // A concrete death test class that forks and re-executes the main
493 // only this specific death test to be run.
501 // The name of the file in which the death test is located.
503 // The line number on which the death test is located.
540 // threadsafe-style death test process.
546 // The main function for a threadsafe-style death test child process.
570 // A threadsafe implementation of fork(2) for threadsafe-style death tests
589 // The AssumeRole process for a fork-and-exec death test. It re-executes the
592 // death test to be re-run.
657 "Death test count (%d) somehow exceeded expected maximum (%d)",
675 "Unknown death test style \"%s\" encountered",