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
106 // Tests that death tests work.
118 fprintf(stderr, "%s", "death inside StaticMemberFunction().");
123 // things that conflict with death tests.
130 fprintf(stderr, "%s", "death inside MemberFunction().");
149 GTEST_LOG_(FATAL) << "death inside MayDie::MemberFunction().";
160 GTEST_LOG_(FATAL) << "death inside GlobalFunction().";
165 GTEST_LOG_(FATAL) << "death inside NonVoidFunction().";
172 GTEST_LOG_(FATAL) << "death inside DieIf().";
179 GTEST_LOG_(FATAL) << "death inside DieIfLessThan().";
186 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction");
187 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction");
190 // Death in dbg, not opt.
194 GTEST_LOG_(FATAL) << "debug death inside DieInDebugElse12()";
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.
458 // Tests that a non-void function can be used in a death test.
463 // Tests that functions that take parameter(s) can be used in a death test.
474 // Tests that death tests can be done inside a loop.
481 // Tests that a compound statement can be used in a death test.
491 // Tests that code that doesn't die causes a death test to fail.
497 // Tests that a death test fails when the error message isn't expected.
500 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
542 // Tests that run-away death tests are reported as failures.
554 // 1. Asserts on death.
563 "death.*DieInDebugElse12");
576 // 1. Asserts on debug death.
589 }, "death.*DieInDebugElse12");
870 // Runs a death test that breaks the rules by returning. Such a death
899 // Test that the parent process doesn't run the death test code,
930 // Tests that the (simulated) child process executes the death test
970 // Tests that a successful death test does not register a successful
1125 // in a static assertion in gtest-death-test.cc in the function
1132 // failures when death tests are available on the system.
1149 // defined but do not trigger failures when death tests are not available on
1153 // when death tests are not supported.
1158 "Death tests are not supported on this platform"));
1171 "Death tests are not supported on this platform"));
1186 // function (as ASSERT_DEATH does) if death tests are not supported.
1194 // Tests that the death test macros expand to code which may or may not
1198 // The syntax should work whether death tests are available or not.
1220 // Tests that conditional death test macros expand to code which interacts