aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-internal-inl.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-01-26 19:21:32 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-01-26 19:21:32 +0000
commit650d5bf3ba200ecbeccbfcec6e7b6cc6f40a1f60 (patch)
tree2c3c7d9501a94340bd4ee3bd4858ebc305bca3eb /src/gtest-internal-inl.h
parentb593ccbbbe6dcef342f833a37e41af0b750c7f14 (diff)
downloadgoogletest-650d5bf3ba200ecbeccbfcec6e7b6cc6f40a1f60.tar.gz
googletest-650d5bf3ba200ecbeccbfcec6e7b6cc6f40a1f60.tar.bz2
googletest-650d5bf3ba200ecbeccbfcec6e7b6cc6f40a1f60.zip
Fixes the bug where the XML output path is affected by test changing the current directory. By Stefan Weigand.
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r--src/gtest-internal-inl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h
index 5808a50c..28006a2f 100644
--- a/src/gtest-internal-inl.h
+++ b/src/gtest-internal-inl.h
@@ -799,9 +799,10 @@ class UnitTestOptions {
// Returns the output format, or "" for normal printed output.
static String GetOutputFormat();
- // Returns the name of the requested output file, or the default if none
- // was explicitly specified.
- static String GetOutputFile();
+ // Returns the absolute path of the requested output file, or the
+ // default (test_detail.xml in the original working directory) if
+ // none was explicitly specified.
+ static String GetAbsolutePathToOutputFile();
// Functions for processing the gtest_filter flag.