Home | History | Annotate | Download | only in test

Lines Matching refs:EXPECT_DEATH

186   EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction");
282 EXPECT_DEATH(_exit(1), "");
284 // This empty "else" branch is meant to ensure that EXPECT_DEATH
294 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3;
304 // Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
309 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world");
330 EXPECT_DEATH(_exit(1), "") << "exit in switch case";
349 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction");
376 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction");
398 EXPECT_DEATH(_exit(1), "");
400 EXPECT_DEATH(_exit(1), "");
435 EXPECT_DEATH(GlobalFunction(), "GlobalFunction");
439 // argument to EXPECT_DEATH.
442 EXPECT_DEATH(GlobalFunction(), regex_c_str);
445 EXPECT_DEATH(GlobalFunction(), regex);
449 EXPECT_DEATH(GlobalFunction(), regex_str);
454 EXPECT_DEATH(GlobalFunction(), regex_std_str);
465 EXPECT_DEATH(DieIf(true), "DieIf\\(\\)");
466 EXPECT_DEATH(DieIfLessThan(2, 3), "DieIfLessThan");
477 EXPECT_DEATH(DieIfLessThan(-1, i), "DieIfLessThan") << "where i == " << i;
483 EXPECT_DEATH({ // NOLINT
493 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(DieIf(false), "DieIf"),
500 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
504 // On exit, *aborted will be true iff the EXPECT_DEATH() statement
508 EXPECT_DEATH(DieIf(false), "DieIf"); // This assertion should fail.
512 // Tests that EXPECT_DEATH doesn't abort the test on failure.
513 TEST_F(TestForDeathTest, EXPECT_DEATH) {
531 // Tests that EXPECT_DEATH evaluates the arguments exactly once.
534 EXPECT_DEATH(DieIf((++x) == 4), "DieIf");
538 EXPECT_DEATH(DieIfLessThan(3, 4), regex++);
544 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(static_cast<void>(0), "Foo"),
614 EXPECT_DEATH({
625 EXPECT_DEATH({
713 EXPECT_DEATH(_exit(0), "") << "This failure is expected.";
890 EXPECT_DEATH(flag = true, "");
905 EXPECT_DEATH(flag = true, "");
920 EXPECT_DEATH(flag = true, "");
952 EXPECT_DEATH(flag = true, "");
973 EXPECT_DEATH(_exit(1), "");
978 EXPECT_DEATH(_exit(1), "") << "unexpected failure";
981 EXPECT_DEATH(_exit(0), "") << "expected failure";
1207 // This empty "else" branch is meant to ensure that EXPECT_DEATH