Lines Matching full:fatal
56 // Tests catching fatal failures.
63 // This function calls a test subroutine, catches the fatal failure it
66 // Calls a subrountine that yields a fatal failure. in TryTestSubroutine()
69 // Catches the fatal failure and aborts the test. in TryTestSubroutine()
114 // Tests catching a fatal failure in a subroutine.
121 // Tests catching a fatal failure in a nested subroutine.
125 // Calls a subrountine that yields a fatal failure. in TEST()
128 // Catches the fatal failure and aborts the test. in TEST()
359 // Tests non-fatal failures in the fixture constructor.
382 // Tests fatal failures in the fixture constructor.
397 << "had a fatal failure."; in SetUp()
403 << "had a fatal failure."; in TearDown()
415 << "had a fatal failure."; in TEST_F()
418 // Tests non-fatal failures in SetUp().
440 // Tests fatal failures in SetUp().
601 EXPECT_EQ(1, global_integer) << "Expected non-fatal failure."; in TEST()
602 }, "Expected non-fatal failure."); in TEST()
612 EXPECT_EQ(m, n) << "Expected non-fatal failure."; in TEST()
613 }, "Expected non-fatal failure."); in TEST()
617 // one non-fatal failure and no fatal failure.
620 ADD_FAILURE() << "Expected non-fatal failure."; in TEST()
621 }, "Expected non-fatal failure."); in TEST()
625 // non-fatal failure.
633 // non-fatal failures.
637 ADD_FAILURE() << "Expected non-fatal failure 1."; in TEST()
638 ADD_FAILURE() << "Expected non-fatal failure 2."; in TEST()
642 // Tests that EXPECT_NONFATAL_FAILURE() fails when there is one fatal
647 FAIL() << "Expected fatal failure."; in TEST()
680 ASSERT_EQ(1, global_integer) << "Expected fatal failure."; in TEST()
681 }, "Expected fatal failure."); in TEST()
690 ASSERT_EQ(0, n) << "Expected fatal failure."; in TEST()
691 }, "Expected fatal failure."); in TEST()
695 // one fatal failure and no non-fatal failure.
698 FAIL() << "Expected fatal failure."; in TEST()
699 }, "Expected fatal failure."); in TEST()
702 // Tests that EXPECT_FATAL_FAILURE() fails when there is no fatal
710 // A helper for generating a fatal failure.
712 FAIL() << "Expected fatal failure."; in FatalFailure()
716 // fatal failures.
725 // Tests that EXPECT_FATAL_FAILURE() fails when there is one non-fatal
730 ADD_FAILURE() << "Expected non-fatal failure."; in TEST()
920 FAIL() << "Expected fatal failure."; in AddFailure()
922 ADD_FAILURE() << "Expected non-fatal failure."; in AddFailure()
928 // Expected fatal failure, but succeeds. in TEST_F()
930 EXPECT_FATAL_FAILURE(SUCCEED(), "Expected fatal failure."); in TEST_F()
931 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
933 EXPECT_FATAL_FAILURE(AddFailure(NONFATAL_FAILURE), "Expected non-fatal " in TEST_F()
937 EXPECT_FATAL_FAILURE(AddFailure(FATAL_FAILURE), "Some other fatal failure " in TEST_F()
942 // Expected non-fatal failure, but succeeds. in TEST_F()
944 EXPECT_NONFATAL_FAILURE(SUCCEED(), "Expected non-fatal failure."); in TEST_F()
945 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
947 EXPECT_NONFATAL_FAILURE(AddFailure(FATAL_FAILURE), "Expected fatal failure."); in TEST_F()
950 EXPECT_NONFATAL_FAILURE(AddFailure(NONFATAL_FAILURE), "Some other non-fatal " in TEST_F()
968 "Expected fatal failure."); in TEST_F()
975 "Expected non-fatal failure."); in TEST_F()
999 // Expected fatal failure, but succeeds. in TEST_F()
1001 EXPECT_FATAL_FAILURE_ON_ALL_THREADS(SUCCEED(), "Expected fatal failure."); in TEST_F()
1002 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
1005 "Expected non-fatal failure."); in TEST_F()
1009 "Some other fatal failure expected."); in TEST_F()
1013 // Expected non-fatal failure, but succeeds. in TEST_F()
1015 EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(SUCCEED(), "Expected non-fatal " in TEST_F()
1017 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
1020 "Expected fatal failure."); in TEST_F()
1024 "Some other non-fatal failure."); in TEST_F()
1086 FAIL() << "Expected fatal failure."; in TearDown()
1096 ADD_FAILURE() << "Expected non-fatal failure."; in TearDown()