Lines Matching refs:EXPECT_DEATH
186 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine()
282 EXPECT_DEATH(_exit(1), ""); in TEST_F()
294 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F()
309 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F()
330 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F()
349 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
376 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
398 EXPECT_DEATH(_exit(1), ""); in TEST_F()
400 EXPECT_DEATH(_exit(1), ""); in TEST_F()
435 EXPECT_DEATH(GlobalFunction(), "GlobalFunction"); in TEST_F()
442 EXPECT_DEATH(GlobalFunction(), regex_c_str); in TEST_F()
445 EXPECT_DEATH(GlobalFunction(), regex); in TEST_F()
449 EXPECT_DEATH(GlobalFunction(), regex_str); in TEST_F()
453 EXPECT_DEATH(GlobalFunction(), regex_std_str); in TEST_F()
463 EXPECT_DEATH(DieIf(true), "DieIf\\(\\)"); in TEST_F()
464 EXPECT_DEATH(DieIfLessThan(2, 3), "DieIfLessThan"); in TEST_F()
475 EXPECT_DEATH(DieIfLessThan(-1, i), "DieIfLessThan") << "where i == " << i; in TEST_F()
481 EXPECT_DEATH({ // NOLINT in TEST_F()
491 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(DieIf(false), "DieIf"), in TEST_F()
498 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message."; in TEST_F()
506 EXPECT_DEATH(DieIf(false), "DieIf"); // This assertion should fail. in ExpectDeathTestHelper()
511 TEST_F(TestForDeathTest, EXPECT_DEATH) { in TEST_F() argument
532 EXPECT_DEATH(DieIf((++x) == 4), "DieIf"); in TEST_F()
536 EXPECT_DEATH(DieIfLessThan(3, 4), regex++); in TEST_F()
542 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(static_cast<void>(0), "Foo"), in TEST_F()
612 EXPECT_DEATH({ in TEST()
623 EXPECT_DEATH({ in TEST()
693 EXPECT_DEATH(_exit(0), "") << "This failure is expected."; in TEST_F()
870 EXPECT_DEATH(flag = true, ""); in TEST_F()
885 EXPECT_DEATH(flag = true, ""); in TEST_F()
900 EXPECT_DEATH(flag = true, ""); in TEST_F()
932 EXPECT_DEATH(flag = true, ""); in TEST_F()
953 EXPECT_DEATH(_exit(1), ""); in TEST()
958 EXPECT_DEATH(_exit(1), "") << "unexpected failure"; in TEST()
961 EXPECT_DEATH(_exit(0), "") << "expected failure"; in TEST()