Lines Matching full:fatal

63 // Tests catching fatal failures.
70 // This function calls a test subroutine, catches the fatal failure it
73 // Calls a subrountine that yields a fatal failure. in TryTestSubroutine()
76 // Catches the fatal failure and aborts the test. in TryTestSubroutine()
116 // Tests catching a fatal failure in a subroutine.
123 // Tests catching a fatal failure in a nested subroutine.
127 // Calls a subrountine that yields a fatal failure. in TEST()
130 // Catches the fatal failure and aborts the test. in TEST()
345 // Tests non-fatal failures in the fixture constructor.
370 // Tests fatal failures in the fixture constructor.
385 << "had a fatal failure."; in SetUp()
391 << "had a fatal failure."; in TearDown()
403 << "had a fatal failure."; in TEST_F()
406 // Tests non-fatal failures in SetUp().
431 // Tests fatal failures in SetUp().
595 EXPECT_EQ(1, global_integer) << "Expected non-fatal failure."; in TEST()
596 }, "Expected non-fatal failure."); in TEST()
606 EXPECT_EQ(m, n) << "Expected non-fatal failure."; in TEST()
607 }, "Expected non-fatal failure."); in TEST()
611 // one non-fatal failure and no fatal failure.
614 ADD_FAILURE() << "Expected non-fatal failure."; in TEST()
615 }, "Expected non-fatal failure."); in TEST()
619 // non-fatal failure.
627 // non-fatal failures.
631 ADD_FAILURE() << "Expected non-fatal failure 1."; in TEST()
632 ADD_FAILURE() << "Expected non-fatal failure 2."; in TEST()
636 // Tests that EXPECT_NONFATAL_FAILURE() fails when there is one fatal
641 FAIL() << "Expected fatal failure."; in TEST()
674 ASSERT_EQ(1, global_integer) << "Expected fatal failure."; in TEST()
675 }, "Expected fatal failure."); in TEST()
684 ASSERT_EQ(0, n) << "Expected fatal failure."; in TEST()
685 }, "Expected fatal failure."); in TEST()
689 // one fatal failure and no non-fatal failure.
692 FAIL() << "Expected fatal failure."; in TEST()
693 }, "Expected fatal failure."); in TEST()
696 // Tests that EXPECT_FATAL_FAILURE() fails when there is no fatal
704 // A helper for generating a fatal failure.
706 FAIL() << "Expected fatal failure."; in FatalFailure()
710 // fatal failures.
719 // Tests that EXPECT_FATAL_FAILURE() fails when there is one non-fatal
724 ADD_FAILURE() << "Expected non-fatal failure."; in TEST()
854 FAIL() << "Expected fatal failure."; in AddFailure()
856 ADD_FAILURE() << "Expected non-fatal failure."; in AddFailure()
862 // Expected fatal failure, but succeeds. in TEST_F()
864 EXPECT_FATAL_FAILURE(SUCCEED(), "Expected fatal failure."); in TEST_F()
865 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
867 EXPECT_FATAL_FAILURE(AddFailure(NONFATAL_FAILURE), "Expected non-fatal " in TEST_F()
871 EXPECT_FATAL_FAILURE(AddFailure(FATAL_FAILURE), "Some other fatal failure " in TEST_F()
876 // Expected non-fatal failure, but succeeds. in TEST_F()
878 EXPECT_NONFATAL_FAILURE(SUCCEED(), "Expected non-fatal failure."); in TEST_F()
879 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
881 EXPECT_NONFATAL_FAILURE(AddFailure(FATAL_FAILURE), "Expected fatal failure."); in TEST_F()
884 EXPECT_NONFATAL_FAILURE(AddFailure(NONFATAL_FAILURE), "Some other non-fatal " in TEST_F()
902 "Expected fatal failure."); in TEST_F()
909 "Expected non-fatal failure."); in TEST_F()
933 // Expected fatal failure, but succeeds. in TEST_F()
935 EXPECT_FATAL_FAILURE_ON_ALL_THREADS(SUCCEED(), "Expected fatal failure."); in TEST_F()
936 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
939 "Expected non-fatal failure."); in TEST_F()
943 "Some other fatal failure expected."); in TEST_F()
947 // Expected non-fatal failure, but succeeds. in TEST_F()
949 EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(SUCCEED(), "Expected non-fatal " in TEST_F()
951 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
954 "Expected fatal failure."); in TEST_F()
958 "Some other non-fatal failure."); in TEST_F()
972 FAIL() << "Expected fatal failure."; in TearDown()
984 ADD_FAILURE() << "Expected non-fatal failure."; in TearDown()