Home | History | Annotate | Download | only in test

Lines Matching refs: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
107 fprintf(stderr, "death inside %s().", function);
112 // things that conflict with death tests.
121 // Tests that death tests work.
186 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction");
187 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction");
190 // Death in dbg, not opt.
273 // Tests that the death test macros expand to code which may or may not
314 // Tests that death test macros expand to code which interacts well with switch
338 // death test.
341 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
345 // style death test.
354 // Tests that death tests work even if the current directory has been
366 // Repeats a representative sample of death tests in the "threadsafe" style:
370 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
427 // Tests that a method of another class can be used in a death test.
433 // Tests that a global function can be used in a death test.
456 // Tests that a non-void function can be used in a death test.
461 // Tests that functions that take parameter(s) can be used in a death test.
472 // Tests that death tests can be done inside a loop.
479 // Tests that a compound statement can be used in a death test.
489 // Tests that code that doesn't die causes a death test to fail.
495 // Tests that a death test fails when the error message isn't expected.
498 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
540 // Tests that run-away death tests are reported as failures.
552 // 1. Asserts on death.
561 "death.*DieInDebugElse12");
574 // 1. Asserts on debug death.
587 }, "death.*DieInDebugElse12");
850 // Runs a death test that breaks the rules by returning. Such a death
879 // Test that the parent process doesn't run the death test code,
910 // Tests that the (simulated) child process executes the death test
950 // Tests that a successful death test does not register a successful
1105 // in a static assertion in gtest-death-test.cc in the function
1112 // failures when death tests are available on the system.
1115 "death inside CondDeathTestExpectMacro");
1117 "death inside CondDeathTestAssertMacro");
1131 // defined but do not trigger failures when death tests are not available on
1135 // when death tests are not supported.
1140 "Death tests are not supported on this platform"));
1153 "Death tests are not supported on this platform"));
1168 // function (as ASSERT_DEATH does) if death tests are not supported.
1176 // Tests that the death test macros expand to code which may or may not
1180 // The syntax should work whether death tests are available or not.
1202 // Tests that conditional death test macros expand to code which interacts