Home
last modified time | relevance | path

Searched refs:EXPECT_DEATH (Results 1 - 25 of 26) sorted by relevance

12

/third_party/googletest/googletest/test/
H A Dgoogletest-death-test-test.cc186 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine()
313 EXPECT_DEATH(_exit(1), ""); in TEST_F()
315 // This empty "else" branch is meant to ensure that EXPECT_DEATH in TEST_F()
324 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F()
338 // Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
341 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F()
360 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F()
377 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
433 EXPECT_DEATH(_exit(1), ""); in TEST_F()
442 EXPECT_DEATH(_exi 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()
/third_party/skia/third_party/externals/tint/fuzzers/
H A Drandom_generator_test.cc55 EXPECT_DEATH(rng_->GetUInt32(10, 5), ".*"); in TEST_F()
59 EXPECT_DEATH(rng_->GetUInt32(5, 5), ".*"); in TEST_F()
63 EXPECT_DEATH(rng_->GetUInt32(0u), ".*"); in TEST_F()
93 EXPECT_DEATH(rng_->GetUInt64(10, 5), ".*"); in TEST_F()
97 EXPECT_DEATH(rng_->GetUInt64(5, 5), ".*"); in TEST_F()
101 EXPECT_DEATH(rng_->GetUInt64(0u), ".*"); in TEST_F()
135 EXPECT_DEATH(rng_->GetNBytes(nullptr, 5), ".*"); in TEST_F()
161 EXPECT_DEATH(rng_->GetWeightedBool(101), ".*"); in TEST_F()
162 EXPECT_DEATH(rng_->GetWeightedBool(500), ".*"); in TEST_F()
183 EXPECT_DEATH(rng in TEST_F()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DTypedIntegerTests.cpp160 EXPECT_DEATH(value++, ""); // Overflows.
167 EXPECT_DEATH(value++, ""); // Overflows.
174 EXPECT_DEATH(value--, ""); // Underflows.
181 EXPECT_DEATH(value--, ""); // Underflows.
188 EXPECT_DEATH(value + Unsigned(2), ""); // Overflows.
195 EXPECT_DEATH(value - Unsigned(2), ""); // Underflows.
202 EXPECT_DEATH(value + Signed(2), ""); // Overflows.
209 EXPECT_DEATH(value + Signed(-2), ""); // Underflows.
216 EXPECT_DEATH(value - Signed(-2), ""); // Overflows.
223 EXPECT_DEATH(valu
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_pthrd_test.cpp100 EXPECT_DEATH(pthread_setname_np(deadThread, "short name"), ".*"); in HWTEST_F()
111 EXPECT_DEATH(pthread_setname_np(nullThread, "short name"), ".*"); in HWTEST_F()
125 EXPECT_DEATH(pthread_getname_np(deadThread, name, sizeof(name)), ".*"); in HWTEST_F()
137 EXPECT_DEATH(pthread_getname_np(nullThread, name, sizeof(name)), ".*"); in HWTEST_F()
286 EXPECT_DEATH(pthread_kill(nullThread, 0), ".*"); in HWTEST_F()
302 EXPECT_DEATH(pthread_setschedparam(deadThread, loadPolicy, &pthreadSchedParam), ".*"); in HWTEST_F()
315 EXPECT_DEATH(pthread_setschedparam(nullThread, loadPolicy, &pthreadSchedParam), ".*"); in HWTEST_F()
342 EXPECT_DEATH(pthread_getschedparam(deadThread, &loadPolicy, &pthreadSchedParam), ".*"); in HWTEST_F()
356 EXPECT_DEATH(pthread_setschedprio(deadThread, 10), ".*"); in HWTEST_F()
367 EXPECT_DEATH(pthread_setschedpri in HWTEST_F()
[all...]
/third_party/googletest/googletest/include/gtest/
H A Dgtest-death-test.h69 // Here's what happens when an ASSERT_DEATH* or EXPECT_DEATH* is
89 // EXPECT_DEATH(server.ProcessRequest(i),
189 #define EXPECT_DEATH(statement, matcher) \ macro
272 #define EXPECT_DEBUG_DEATH(statement, regex) EXPECT_DEATH(statement, regex)
282 // if and only if EXPECT_DEATH and ASSERT_DEATH compile with the same parameters
291 // statement - A statement that a macro such as EXPECT_DEATH would test
295 // parameter if and only if EXPECT_DEATH compiles with it.
296 // regex - A regex that a macro such as EXPECT_DEATH would use to test
300 // EXPECT_DEATH would accept.
313 // macro, for compilational compatibility with EXPECT_DEATH/ASSERT_DEAT
[all...]
/third_party/mesa3d/src/gtest/include/gtest/
H A Dgtest-death-test.h67 // Here's what happens when an ASSERT_DEATH* or EXPECT_DEATH* is
87 // EXPECT_DEATH(server.ProcessRequest(i),
184 # define EXPECT_DEATH(statement, regex) \ macro
268 EXPECT_DEATH(statement, regex)
279 // if and only if EXPECT_DEATH and ASSERT_DEATH compile with the same parameters
288 // statement - A statement that a macro such as EXPECT_DEATH would test
292 // parameter if and only if EXPECT_DEATH compiles with it.
293 // regex - A regex that a macro such as EXPECT_DEATH would use to test
297 // EXPECT_DEATH would accept.
310 // macro, for compilational compatibility with EXPECT_DEATH/ASSERT_DEAT
[all...]
/third_party/node/deps/googletest/include/gtest/
H A Dgtest-death-test.h69 // Here's what happens when an ASSERT_DEATH* or EXPECT_DEATH* is
89 // EXPECT_DEATH(server.ProcessRequest(i),
189 #define EXPECT_DEATH(statement, matcher) \ macro
272 #define EXPECT_DEBUG_DEATH(statement, regex) EXPECT_DEATH(statement, regex)
282 // if and only if EXPECT_DEATH and ASSERT_DEATH compile with the same parameters
291 // statement - A statement that a macro such as EXPECT_DEATH would test
295 // parameter if and only if EXPECT_DEATH compiles with it.
296 // regex - A regex that a macro such as EXPECT_DEATH would use to test
300 // EXPECT_DEATH would accept.
313 // macro, for compilational compatibility with EXPECT_DEATH/ASSERT_DEAT
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dprinter_unittest.cc693 EXPECT_DEATH(printer.FormatInternal(args, vars, "$empty $$1$"), "Unused"); in TEST()
700 EXPECT_DEATH(printer.FormatInternal(args, vars, "$2$ $1$"), "order"); in TEST()
707 EXPECT_DEATH(printer.FormatInternal(args, vars, "$0$"), "failed"); in TEST()
714 EXPECT_DEATH(printer.FormatInternal(args, vars, "$1$ $2$ $3$"), "bounds"); in TEST()
721 EXPECT_DEATH(printer.FormatInternal(args, vars, "$huh$ $1$$2$"), "Unknown"); in TEST()
728 EXPECT_DEATH(printer.FormatInternal({}, vars, "$ $"), "Empty"); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dmemory_test.cpp86 EXPECT_DEATH(ptr[-1] = 1, ""); in TEST_F()
87 EXPECT_DEATH(ptr[marl::pageSize()] = 1, ""); in TEST_F()
H A Dwaitgroup_test.cpp30 EXPECT_DEATH(wg.done(), "done\\(\\) called too many times"); in TEST_F()
H A Dscheduler_test.cpp222 EXPECT_DEATH(scheduler->enqueue(marl::Task([] {})), in TEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dexception_testing.h35 EXPECT_DEATH(expr, ".*")
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/
H A Dfortify_poll_chk_test.cpp44 EXPECT_DEATH(__poll_chk(fds, nfds, TIME_OUT, fdsLen), ""); in HWTEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
H A Dblocking_counter_test.cc73 EXPECT_DEATH(BlockingCounter counter(-1), in TEST()
/third_party/protobuf/src/google/protobuf/stubs/
H A Dint128_unittest.cc336 EXPECT_DEATH(a / b, "Division or mod by zero:"); in TEST()
338 EXPECT_DEATH(a / b, "Division or mod by zero:"); in TEST()
344 EXPECT_DEATH(a % b, "Division or mod by zero:"); in TEST()
346 EXPECT_DEATH(a % b, "Division or mod by zero:"); in TEST()
H A Dstringpiece_unittest.cc789 EXPECT_DEATH(StringPiece("xyz", -1), "len >= 0"); in TEST()
/third_party/protobuf/src/google/protobuf/
H A Drepeated_field_reflection_unittest.cc145 EXPECT_DEATH(refl->GetRepeatedField<int32>(message, fd_optional_int32), in TEST()
147 EXPECT_DEATH(refl->GetRepeatedField<double>(message, fd_repeated_int32), in TEST()
149 EXPECT_DEATH(refl->GetRepeatedPtrField<TestAllTypes>( in TEST()
428 EXPECT_DEATH(refl->GetRepeatedFieldRef<int32>(message, fd_optional_int32), in TEST()
430 EXPECT_DEATH(refl->GetRepeatedFieldRef<double>(message, fd_repeated_int32), in TEST()
432 EXPECT_DEATH(refl->GetRepeatedFieldRef<TestAllTypes>( in TEST()
H A Dgenerated_message_reflection_unittest.cc1009 EXPECT_DEATH( in TEST()
1019 EXPECT_DEATH(reflection->GetInt32( in TEST()
1027 EXPECT_DEATH( in TEST()
1036 EXPECT_DEATH( in TEST()
H A Dreflection_ops_unittest.cc198 EXPECT_DEATH(ReflectionOps::Merge(message, &message), "&from"); in TEST()
H A Dmap_test.cc220 EXPECT_DEATH(map_.at(0), ""); in TEST_F()
224 EXPECT_DEATH(const_map_.at(0), ""); in TEST_F()
230 EXPECT_DEATH(key.GetUInt64Value(), in TEST_F()
237 EXPECT_DEATH(value.SetFloatValue(0.1), in TEST_F()
1039 EXPECT_DEATH(m.at(miss_key), ""); in TestTransparent()
1040 EXPECT_DEATH(cm.at(miss_key), ""); in TestTransparent()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dcord_rep_btree_test.cc298 EXPECT_DEATH(rep->btree(), ".*"); in TEST()
299 EXPECT_DEATH(static_cast<const CordRep*>(rep)->btree(), ".*"); in TEST()
335 EXPECT_DEATH(CordRepBtree::EdgeData(concat), ".*"); in TEST()
336 EXPECT_DEATH(CordRepBtree::EdgeDataPtr(concat), ".*"); in TEST()
337 EXPECT_DEATH(CordRepBtree::EdgeData(bad_substr), ".*"); in TEST()
338 EXPECT_DEATH(CordRepBtree::EdgeDataPtr(bad_substr), ".*"); in TEST()
1001 EXPECT_DEATH(tree = CordRepBtree::Append(tree, MakeFlat("Boom")), ".*"); in TEST_P()
1080 EXPECT_DEATH(tree->GetAppendBuffer(1), ".*"); in TEST_P()
H A Dcord_rep_btree_navigator_test.cc105 EXPECT_DEATH(nav.Current(), ".*"); in TEST()
177 EXPECT_DEATH(nav.Current(), ".*"); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/
H A DIceParseInstsTest.cpp68 EXPECT_DEATH(Munger.runTest(ParseError), ".*ERROR: Unable to continue.*"); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dcord_ring_test.cc551 EXPECT_DEATH(CordRepRing::Create(flat, CordRepRing::kMaxCapacity), ".*"); in TEST_F()

Completed in 25 milliseconds

12