Home | History | Annotate | Download | only in test

Lines Matching refs:EXPECT_DEATH

191   EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction");
291 EXPECT_DEATH(_exit(1), "");
293 // This empty "else" branch is meant to ensure that EXPECT_DEATH
303 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3;
313 // Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
318 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world");
339 EXPECT_DEATH(_exit(1), "") << "exit in switch case";
358 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction");
385 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction");
407 EXPECT_DEATH(_exit(1), "");
409 EXPECT_DEATH(_exit(1), "");
444 EXPECT_DEATH(GlobalFunction(), "GlobalFunction");
448 // argument to EXPECT_DEATH.
451 EXPECT_DEATH(GlobalFunction(), regex_c_str);
454 EXPECT_DEATH(GlobalFunction(), regex);
459 EXPECT_DEATH(GlobalFunction(), regex_str);
464 EXPECT_DEATH(GlobalFunction(), regex_std_str);
474 EXPECT_DEATH(DieIf(true), "DieIf\\(\\)");
475 EXPECT_DEATH(DieIfLessThan(2, 3), "DieIfLessThan");
486 EXPECT_DEATH(DieIfLessThan(-1, i), "DieIfLessThan") << "where i == " << i;
492 EXPECT_DEATH({ // NOLINT
502 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(DieIf(false), "DieIf"),
509 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
513 // On exit, *aborted will be true iff the EXPECT_DEATH() statement
517 EXPECT_DEATH(DieIf(false), "DieIf"); // This assertion should fail.
521 // Tests that EXPECT_DEATH doesn't abort the test on failure.
522 TEST_F(TestForDeathTest, EXPECT_DEATH) {
540 // Tests that EXPECT_DEATH evaluates the arguments exactly once.
543 EXPECT_DEATH(DieIf((++x) == 4), "DieIf");
547 EXPECT_DEATH(DieIfLessThan(3, 4), regex++);
553 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(static_cast<void>(0), "Foo"),
634 EXPECT_DEATH({
708 EXPECT_DEATH(_exit(0), "") << "This failure is expected.";
715 EXPECT_DEATH(DieWithMessage("death\n"),
724 EXPECT_DEATH({
749 EXPECT_DEATH(DieWithMessage("line 1\nline 2\nline 3\n"),
759 EXPECT_DEATH(DieWithMessage("line 1\nline 2\nline 3\n"),
936 EXPECT_DEATH(flag = true, "");
951 EXPECT_DEATH(flag = true, "");
966 EXPECT_DEATH(flag = true, "");
998 EXPECT_DEATH(flag = true, "");
1019 EXPECT_DEATH(_exit(1), "");
1024 EXPECT_DEATH(_exit(1), "") << "unexpected failure";
1027 EXPECT_DEATH(_exit(0), "") << "expected failure";
1255 // This empty "else" branch is meant to ensure that EXPECT_DEATH