Lines Matching refs:ASSERT_DEATH
192 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
195 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction");
291 ASSERT_DEATH(return, "");
301 ASSERT_DEATH(return, "") << "did not die";
316 // Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
322 ASSERT_DEATH(DieWithEmbeddedNul(), "my null world");
338 ASSERT_DEATH(_exit(1), "") << "exit in default switch handler";
353 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
375 ASSERT_DEATH(_exit(1), "");
434 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
457 ASSERT_DEATH(_exit(1), "");
484 ASSERT_DEATH(_exit(1), "");
494 ASSERT_DEATH(x.MemberFunction(), "MayDie\\:\\:MemberFunction");
524 ASSERT_DEATH(NonVoidFunction(), "NonVoidFunction");
533 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
584 // Tests that ASSERT_DEATH does abort the test on failure.
585 TEST_F(TestForDeathTest, ASSERT_DEATH) {
589 ASSERT_DEATH(DieIf(false), "DieIf"); // This assertion should fail.
615 EXPECT_FATAL_FAILURE(ASSERT_DEATH(return, "Bar"),
972 ASSERT_DEATH({ // NOLINT
1077 ASSERT_DEATH(_exit(1), "") << "unexpected failure";
1082 ASSERT_DEATH(_exit(0), "") << "expected failure";
1284 // function (as ASSERT_DEATH does) if death tests are not supported.