Searched refs:ASSERT_DEATH (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-death-test-test.cc | 192 ASSERT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine() 317 ASSERT_DEATH(return, ""); in TEST_F() 326 if (AlwaysFalse()) ASSERT_DEATH(return, "") << "did not die"; in TEST_F() 346 ASSERT_DEATH(_Exit(1), "") << "exit in default switch handler"; in TEST_F() 359 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember"); in TEST_F() 381 ASSERT_DEATH(_Exit(1), ""); in TEST_F() 443 ASSERT_DEATH(StaticMemberFunction(), "death.*StaticMember"); in TEST_F() 466 ASSERT_DEATH(_Exit(1), ""); in TEST_F() 487 ASSERT_DEATH(_Exit(1), ""); in TEST_F() 497 ASSERT_DEATH(x.MemberFunction(), "MayDie\\:\\:MemberFunction"); in TEST_F() [all …]
|
/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest-death-test.h | 184 #define ASSERT_DEATH(statement, matcher) \ macro 274 #define ASSERT_DEBUG_DEATH(statement, regex) ASSERT_DEATH(statement, regex) 335 ASSERT_DEATH(statement, regex)
|
/freebsd/contrib/googletest/docs/ |
H A D | faq.md | 451 ## What can the statement argument in ASSERT_DEATH() be? 453 `ASSERT_DEATH(statement, matcher)` (or any death assertion macro) can be used 467 ASSERT_DEATH(Xyz(5), "Xyz failed"); 473 ASSERT_DEATH((c ? Func1(0) : object2.Method("test")), 491 ASSERT_DEATH({ 514 ## Why does ASSERT_DEATH complain about previous threads that were already joined? 527 …tire test suite, instead of individual tests, to be named `*DeathTest` when it uses `ASSERT_DEATH`? 567 TEST_F(FooDeathTest, Xyz) { ... ASSERT_DEATH(...) ... }
|
H A D | advanced.md | 442 ASSERT_DEATH({ 472 satisfy `predicate`? Or (in the case of `ASSERT_DEATH` and `EXPECT_DEATH`) 605 ASSERT_DEATH(ThisShouldDie(), ""); 610 ASSERT_DEATH(ThisShouldDie(), "");
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | assertions.md | 563 `ASSERT_DEATH(`*`statement`*`,`*`matcher`*`)`
|