Inject GTEST_EXTRA_DEATH_TEST_CHILD_SETUP
This commit is contained in:
parent
c33ce7c159
commit
1e86cae1d6
|
@ -4574,6 +4574,11 @@ bool UnitTestImpl::RunAllTests() {
|
||||||
|
|
||||||
#if GTEST_HAS_DEATH_TEST
|
#if GTEST_HAS_DEATH_TEST
|
||||||
in_subprocess_for_death_test = (internal_run_death_test_flag_.get() != NULL);
|
in_subprocess_for_death_test = (internal_run_death_test_flag_.get() != NULL);
|
||||||
|
# if defined(GTEST_EXTRA_DEATH_TEST_CHILD_SETUP_)
|
||||||
|
if (in_subprocess_for_death_test) {
|
||||||
|
GTEST_EXTRA_DEATH_TEST_CHILD_SETUP_();
|
||||||
|
}
|
||||||
|
# endif // defined(GTEST_EXTRA_DEATH_TEST_CHILD_SETUP_)
|
||||||
#endif // GTEST_HAS_DEATH_TEST
|
#endif // GTEST_HAS_DEATH_TEST
|
||||||
|
|
||||||
const bool should_shard = ShouldShard(kTestTotalShards, kTestShardIndex,
|
const bool should_shard = ShouldShard(kTestTotalShards, kTestShardIndex,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user