Home
last modified time | relevance | path

Searched refs:EXPECT_DEATH (Results 1 – 11 of 11) sorted by relevance

/freebsd-14-stable/contrib/googletest/googletest/test/
HDgoogletest-death-test-test.cc191 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine()
320 EXPECT_DEATH(_Exit(1), ""); in TEST_F()
331 EXPECT_DEATH(_Exit(1), "") << 1 << 2 << 3; in TEST_F()
350 EXPECT_DEATH(_Exit(1), "") << "exit in switch case"; in TEST_F()
367 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
423 EXPECT_DEATH(_Exit(1), ""); in TEST_F()
432 EXPECT_DEATH(_Exit(1), ""); in TEST_F()
449 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
471 EXPECT_DEATH(_Exit(1), ""); in TEST_F()
473 EXPECT_DEATH(_Exit(1), ""); in TEST_F()
[all …]
HDgoogletest-death-test_ex_test.cc52 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw 1, ""), "threw an exception"); in TEST()
67 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST()
70 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), __FILE__); in TEST()
79 EXPECT_DEATH(RaiseException(42, 0x0, 0, NULL), "") in TEST()
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
HDerror_test.cpp70 EXPECT_DEATH({ Error E = Error::success(); }, in TEST()
81 EXPECT_DEATH(DropUnhandledError(), in TEST()
138 EXPECT_DEATH( in TEST()
195 EXPECT_DEATH({ Expected<int> A = 7; }, in TEST()
204 EXPECT_DEATH( in TEST()
217 EXPECT_DEATH( in TEST()
240 EXPECT_DEATH(*A, "Expected<T> must be checked before access or destruction.") in TEST()
249 EXPECT_DEATH({ Expected<int> A = make_error<CustomError>(42); }, in TEST()
288 EXPECT_DEATH(cantFail(make_error<StringError>("foo")), in TEST()
292 EXPECT_DEATH(cantFail(Expected<int>(make_error<StringError>("foo"))), in TEST()
HDc_api_test.cpp187 EXPECT_DEATH({ orc_rt_CWrapperFunctionResultData(&R); }, in TEST()
189 EXPECT_DEATH({ orc_rt_CWrapperFunctionResultSize(&R); }, in TEST()
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
HDrtsan_test_context.cpp33 EXPECT_DEATH(context.ExpectNotRealtime("do_some_stuff"), ""); in TEST()
45 EXPECT_DEATH(context.ExpectNotRealtime("do_some_stuff"), ""); in TEST()
68 EXPECT_DEATH(context.ExpectNotRealtime("do_some_stuff"), ""); in TEST()
/freebsd-14-stable/contrib/googletest/googletest/include/gtest/
HDgtest-death-test.h189 #define EXPECT_DEATH(statement, matcher) \ macro
272 #define EXPECT_DEBUG_DEATH(statement, regex) EXPECT_DEATH(statement, regex)
333 EXPECT_DEATH(statement, regex)
/freebsd-14-stable/contrib/googletest/docs/reference/
HDassertions.md554 EXPECT_DEATH({
560 ### EXPECT_DEATH {#EXPECT_DEATH}
562 `EXPECT_DEATH(`*`statement`*`,`*`matcher`*`)` \
579 EXPECT_DEATH(DoSomething(42), "My error");
588 [`EXPECT_DEATH`](#EXPECT_DEATH). Otherwise, verifies nothing.
595 In debug mode, behaves the same as [`EXPECT_DEATH`](#EXPECT_DEATH). When not in
/freebsd-14-stable/contrib/googletest/docs/
HDfaq.md133 Death tests (`EXPECT_DEATH`, etc.) are executed in a sub-process s.t. the
141 you may want to move your `EXPECT_CALL` statements inside the `EXPECT_DEATH`
267 of `EXPECT_DEATH()`. For example, you may want to use mocks or fake objects
273 `EXPECT_DEATH()` (in the extreme case, you want to move everything inside), or
566 TEST_F(FooDeathTest, Uvw) { ... EXPECT_DEATH(...) ... }
572 Printing the LOG messages generated by the statement inside `EXPECT_DEATH()`
HDadvanced.md472 satisfy `predicate`? Or (in the case of `ASSERT_DEATH` and `EXPECT_DEATH`)
/freebsd-14-stable/contrib/googletest/
HDBUILD.bazel157 # `gtest-death-test.cc` has `EXPECT_DEATH` that spawns a process,
/freebsd-14-stable/contrib/capsicum-test/
HDlinux.cc1448 EXPECT_DEATH(*p_ro = 42, ""); in TEST()