Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
original_working_dir is needed even when death tests are disabled
UnitTest::GetInstance()->original_working_dir() is documented public API: https://github.com/google/googletest/blob/main/docs/reference/testing.md#original_working_dir-unittestoriginal_working_dir and is used for things like UnitTestOptions::GetAbsolutePathToOutputFile. So stubbing it to just return an empty string breaks many other unit tests unnecessarily if you have a filesystem but not death tests If there's a need to do something special for diskless systems, seems like they should have a distinct check. reverts e5686bb google#3090 See google#3869 for discussion This has now been reverted (and refactored) on `main` by google#3682, but the refactoring is more complex than I want to cherry-pick. So we will keep the simple revert for 0.12.1
- Loading branch information