diff options
author | Mark Barolak <mbar@google.com> | 2020-11-10 20:22:17 (GMT) |
---|---|---|
committer | Mark Barolak <mbar@google.com> | 2020-11-10 20:22:17 (GMT) |
commit | cda3906456853a6e06827493ddb867ba1142285f (patch) | |
tree | 4b2d4841a84a12cd5267357bc83141301562bf14 /googletest/src/gtest-internal-inl.h | |
parent | fbef0711cfce7b8f149aac773d30ae48ce3e166c (diff) | |
parent | e5686bb18b52dc29312a7b79c3d6ca2c826c31ed (diff) | |
download | googletest-cda3906456853a6e06827493ddb867ba1142285f.zip googletest-cda3906456853a6e06827493ddb867ba1142285f.tar.gz googletest-cda3906456853a6e06827493ddb867ba1142285f.tar.bz2 |
Merge pull request #3090 from knutpett:working_dir_on_diskless
PiperOrigin-RevId: 341604408
Diffstat (limited to 'googletest/src/gtest-internal-inl.h')
-rw-r--r-- | googletest/src/gtest-internal-inl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h index aef5571..2b7ebf9 100644 --- a/googletest/src/gtest-internal-inl.h +++ b/googletest/src/gtest-internal-inl.h @@ -682,6 +682,7 @@ class GTEST_API_ UnitTestImpl { void AddTestInfo(internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc, TestInfo* test_info) { +#if GTEST_HAS_DEATH_TEST // In order to support thread-safe death tests, we need to // remember the original working directory when the test program // was first invoked. We cannot do this in RUN_ALL_TESTS(), as @@ -694,6 +695,7 @@ class GTEST_API_ UnitTestImpl { GTEST_CHECK_(!original_working_dir_.IsEmpty()) << "Failed to get the current working directory."; } +#endif // GTEST_HAS_DEATH_TEST GetTestSuite(test_info->test_suite_name(), test_info->type_param(), set_up_tc, tear_down_tc) |