Home | History | Annotate | Download | only in test

Lines Matching refs:ASSERT_DEATH

189 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
192 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction");
288 ASSERT_DEATH(return, "");
298 ASSERT_DEATH(return, "") << "did not die";
313 // Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
319 ASSERT_DEATH(DieWithEmbeddedNul(), "my null world");
335 ASSERT_DEATH(_exit(1), "") << "exit in default switch handler";
350 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
372 ASSERT_DEATH(_exit(1), "");
379 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember");
402 ASSERT_DEATH(_exit(1), "");
429 ASSERT_DEATH(_exit(1), "");
439 ASSERT_DEATH(x.MemberFunction(), "MayDie\\:\\:MemberFunction");
469 ASSERT_DEATH(NonVoidFunction(), "NonVoidFunction");
478 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
529 // Tests that ASSERT_DEATH does abort the test on failure.
530 TEST_F(TestForDeathTest, ASSERT_DEATH) {
534 ASSERT_DEATH
560 EXPECT_FATAL_FAILURE(ASSERT_DEATH(return, "Bar"),
920 ASSERT_DEATH({ // NOLINT
1025 ASSERT_DEATH(_exit(1), "") << "unexpected failure";
1030 ASSERT_DEATH(_exit(0), "") << "expected failure";
1234 // function (as ASSERT_DEATH does) if death tests are not supported.