diff options
author | Mark Barolak <mbar@google.com> | 2020-11-10 15:22:17 -0500 |
---|---|---|
committer | Mark Barolak <mbar@google.com> | 2020-11-10 15:22:17 -0500 |
commit | cda3906456853a6e06827493ddb867ba1142285f (patch) | |
tree | 4b2d4841a84a12cd5267357bc83141301562bf14 | |
parent | fbef0711cfce7b8f149aac773d30ae48ce3e166c (diff) | |
parent | e5686bb18b52dc29312a7b79c3d6ca2c826c31ed (diff) | |
download | googletest-git-cda3906456853a6e06827493ddb867ba1142285f.tar.gz |
Merge pull request #3090 from knutpett:working_dir_on_diskless
PiperOrigin-RevId: 341604408
-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 aef5571c..2b7ebf9b 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) |