Home
last modified time | relevance | path

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

/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-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 …]
H A Dgoogletest-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/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Derror_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()
H A Dc_api_test.cpp187 EXPECT_DEATH({ orc_rt_CWrapperFunctionResultData(&R); }, in TEST()
189 EXPECT_DEATH({ orc_rt_CWrapperFunctionResultSize(&R); }, in TEST()
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_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/contrib/googletest/googletest/include/gtest/
H A Dgtest-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/contrib/googletest/docs/reference/
H A Dassertions.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/contrib/atf/atf-c/
H A Dtc.c63 EXPECT_DEATH, enumerator
302 if (ctx->expect == EXPECT_DEATH) { in validate_expect()
1063 ctx->expect = EXPECT_DEATH; in _atf_tc_expect_death()
/freebsd/contrib/googletest/docs/
H A Dfaq.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()`
H A Dadvanced.md472 satisfy `predicate`? Or (in the case of `ASSERT_DEATH` and `EXPECT_DEATH`)
/freebsd/contrib/googletest/
H A DBUILD.bazel157 # `gtest-death-test.cc` has `EXPECT_DEATH` that spawns a process,
/freebsd/contrib/capsicum-test/
H A Dlinux.cc1448 EXPECT_DEATH(*p_ro = 42, ""); in TEST()