aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtest.cc')
-rw-r--r--src/gtest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index 09f6bae4..8ca6ac8e 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -3211,6 +3211,12 @@ int UnitTest::Run() {
#endif // GTEST_OS_WINDOWS
}
+// Returns the working directory when the first TEST() or TEST_F() was
+// executed.
+const char* UnitTest::original_working_dir() const {
+ return impl_->original_working_dir_.c_str();
+}
+
// Returns the TestCase object for the test that's currently running,
// or NULL if no test is running.
// L < mutex_