Lines Matching full:fatal
57 // Tests catching fatal failures.
62 // This function calls a test subroutine, catches the fatal failure it
65 // Calls a subrountine that yields a fatal failure. in TryTestSubroutine()
68 // 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()
355 // Tests non-fatal failures in the fixture constructor.
378 // Tests fatal failures in the fixture constructor.
393 << "had a fatal failure."; in SetUp()
399 << "had a fatal failure."; in TearDown()
409 << "had a fatal failure."; in TEST_F()
412 // Tests non-fatal failures in SetUp().
432 // Tests fatal failures in SetUp().
458 GTEST_FAIL_AT("foo.cc", 42) << "Expected fatal failure in foo.cc"; in TEST()
531 { EXPECT_EQ(1, global_integer) << "Expected non-fatal failure."; }, in TEST()
532 "Expected non-fatal failure."); in TEST()
541 EXPECT_NONFATAL_FAILURE({ EXPECT_EQ(m, n) << "Expected non-fatal failure."; }, in TEST()
542 "Expected non-fatal failure."); in TEST()
546 // one non-fatal failure and no fatal failure.
548 EXPECT_NONFATAL_FAILURE({ ADD_FAILURE() << "Expected non-fatal failure."; }, in TEST()
549 "Expected non-fatal failure."); in TEST()
553 // non-fatal failure.
560 // non-fatal failures.
565 ADD_FAILURE() << "Expected non-fatal failure 1."; in TEST()
566 ADD_FAILURE() << "Expected non-fatal failure 2."; in TEST()
571 // Tests that EXPECT_NONFATAL_FAILURE() fails when there is one fatal
575 EXPECT_NONFATAL_FAILURE({ FAIL() << "Expected fatal failure."; }, ""); in TEST()
603 { ASSERT_EQ(1, global_integer) << "Expected fatal failure."; }, in TEST()
604 "Expected fatal failure."); in TEST()
612 EXPECT_FATAL_FAILURE({ ASSERT_EQ(0, n) << "Expected fatal failure."; }, in TEST()
613 "Expected fatal failure."); in TEST()
617 // one fatal failure and no non-fatal failure.
619 EXPECT_FATAL_FAILURE({ FAIL() << "Expected fatal failure."; }, in TEST()
620 "Expected fatal failure."); in TEST()
623 // Tests that EXPECT_FATAL_FAILURE() fails when there is no fatal
630 // A helper for generating a fatal failure.
631 void FatalFailure() { FAIL() << "Expected fatal failure."; } in FatalFailure()
634 // fatal failures.
645 // Tests that EXPECT_FATAL_FAILURE() fails when there is one non-fatal
649 EXPECT_FATAL_FAILURE({ ADD_FAILURE() << "Expected non-fatal failure."; }, ""); in TEST()
820 FAIL() << "Expected fatal failure."; in AddFailure()
822 ADD_FAILURE() << "Expected non-fatal failure."; in AddFailure()
828 // Expected fatal failure, but succeeds. in TEST_F()
830 EXPECT_FATAL_FAILURE(SUCCEED(), "Expected fatal failure."); in TEST_F()
831 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
834 "Expected non-fatal " in TEST_F()
839 "Some other fatal failure " in TEST_F()
844 // Expected non-fatal failure, but succeeds. in TEST_F()
846 EXPECT_NONFATAL_FAILURE(SUCCEED(), "Expected non-fatal failure."); in TEST_F()
847 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
849 EXPECT_NONFATAL_FAILURE(AddFailure(FATAL_FAILURE), "Expected fatal failure."); in TEST_F()
853 "Some other non-fatal " in TEST_F()
871 "Expected fatal failure."); in TEST_F()
878 "Expected non-fatal failure."); in TEST_F()
902 // Expected fatal failure, but succeeds. in TEST_F()
904 EXPECT_FATAL_FAILURE_ON_ALL_THREADS(SUCCEED(), "Expected fatal failure."); in TEST_F()
905 // Expected fatal failure, but got a non-fatal failure. in TEST_F()
908 "Expected non-fatal failure."); in TEST_F()
912 "Some other fatal failure expected."); in TEST_F()
916 // Expected non-fatal failure, but succeeds. in TEST_F()
919 "Expected non-fatal " in TEST_F()
921 // Expected non-fatal failure, but got a fatal failure. in TEST_F()
924 "Expected fatal failure."); in TEST_F()
928 "Some other non-fatal failure."); in TEST_F()
990 FAIL() << "Expected fatal failure."; in TearDown()
1000 ADD_FAILURE() << "Expected non-fatal failure."; in TearDown()