Skip to content

Commit

Permalink
Inject GTEST_EXTRA_DEATH_TEST_CHILD_SETUP
Browse files Browse the repository at this point in the history
git-svn-id: http://googletest.googlecode.com/svn/trunk@742 861a406c-534a-0410-8894-cb66d6ee9925
  • Loading branch information
kosak@google.com committed Jul 27, 2015
1 parent cc93334 commit c4fa6f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4574,6 +4574,11 @@ bool UnitTestImpl::RunAllTests() {

#if GTEST_HAS_DEATH_TEST
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

const bool should_shard = ShouldShard(kTestTotalShards, kTestShardIndex,
Expand Down

0 comments on commit c4fa6f3

Please sign in to comment.