Lines Matching full:death
32 // Tests for death tests.
34 #include "gtest/gtest-death-test.h"
80 // A helper class whose objects replace the death test factory for a
113 // things that conflict with death tests.
123 DieWithMessage("death inside " + function + "().");
126 // Tests that death tests work.
191 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction");
192 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction");
195 // Death in dbg, not opt.
282 // Tests that the death test macros expand to code which may or may not
323 // Tests that death test macros expand to code which interacts well with switch
347 // death test.
350 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
354 // style death test.
363 // Tests that death tests work even if the current directory has been
375 // Repeats a representative sample of death tests in the "threadsafe" style:
379 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
436 // Tests that a method of another class can be used in a death test.
442 // Tests that a global function can be used in a death test.
467 // Tests that a non-void function can be used in a death test.
472 // Tests that functions that take parameter(s) can be used in a death test.
483 // Tests that death tests can be done inside a loop.
490 // Tests that a compound statement can be used in a death test.
500 // Tests that code that doesn't die causes a death test to fail.
506 // Tests that a death test fails when the error message isn't expected.
509 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
551 // Tests that run-away death tests are reported as failures.
557 // Tests that death tests report executing 'return' in the statement as
566 // 1. Asserts on death.
575 "death.*DieInDebugElse12");
592 // 1. Asserts on debug death.
605 }, "death.*DieInDebugElse12");
715 EXPECT_DEATH(DieWithMessage("death\n"),
718 "[ DEATH ] death\n");
731 "[ DEATH ] returning\n");
743 "[ DEATH ] exiting with rc 1\n");
752 "[ DEATH ] line 1\n"
753 "[ DEATH ] line 2\n"
754 "[ DEATH ] line 3\n");
916 // Runs a death test that breaks the rules by returning. Such a death
945 // Test that the parent process doesn't run the death test code,
976 // Tests that the (simulated) child process executes the death test
1016 // Tests that a successful death test does not register a successful
1171 // in a static assertion in gtest-death-test.cc in the function
1178 // failures when death tests are available on the system.
1181 "death inside CondDeathTestExpectMacro");
1183 "death inside CondDeathTestAssertMacro");
1197 // defined but do not trigger failures when death tests are not available on
1201 // when death tests are not supported.
1206 "Death tests are not supported on this platform"));
1219 "Death tests are not supported on this platform"));
1234 // function (as ASSERT_DEATH does) if death tests are not supported.
1242 // Tests that the death test macros expand to code which may or may not
1246 // The syntax should work whether death tests are available or not.
1268 // Tests that conditional death test macros expand to code which interacts