Lines Matching refs:death
420 (except by throwing an exception) in an expected fashion is also a death test.
422 Note that if a piece of code throws an exception, we don't consider it "death"
423 for the purpose of death tests, as the caller of the code could catch the
432 GoogleTest provides assertion macros to support death tests. See
433 [Death Assertions](reference/assertions.md#death) in the Assertions Reference
436 To write a death test, simply use one of the macros inside your test function.
441 // This death test uses a compound statement.
468 Note that a death test only cares about three things:
477 will **not** cause the death test to fail, as GoogleTest assertions don't abort
484 **test suite** (not test) `*DeathTest` when it contains a death test, as
486 [Death Tests And Threads](#death-tests-and-threads) section below explains why.
488 If a test fixture class is shared by normal tests and death tests, you can use
502 // death test
547 `GTEST_USES_SIMPLE_RE=1` or `GTEST_USES_POSIX_RE=1`. If you want your death
553 See [Death Assertions](reference/assertions.md#death) in the Assertions
558 The reason for the two death test styles has to do with thread safety. Due to
559 well-known problems with forking in the presence of threads, death tests should
567 1. A warning is emitted if multiple threads are running when a death test is
575 It's perfectly fine to create threads inside a death test statement; they are
580 The "threadsafe" death test style was introduced in order to help mitigate the
585 particular style of death tests by setting the flag programmatically:
591 You can do this in `main()` to set the style for all death tests in the binary,
618 exception, the death test is considered to have failed. Some GoogleTest macros
624 in the parent process. In particular, if you release memory in a death test,
628 1. try not to free memory in a death test;
632 Due to an implementation detail, you cannot place multiple death test assertions
636 Despite the improved thread safety afforded by the "threadsafe" style of death
1869 * `./foo_test --gtest_filter=-*DeathTest.*` Runs all non-death tests.