Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
ed16134f
Commit
ed16134f
authored
Jan 10, 2020
by
Abseil Team
Committed by
vslashg
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Change testing::TempDir() return value for Android PiperOrigin-RevId: 289102017
parent
d854bd6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gtest.cc
googletest/src/gtest.cc
+5
-1
No files found.
googletest/src/gtest.cc
View file @
ed16134f
...
@@ -6289,7 +6289,11 @@ std::string TempDir() {
...
@@ -6289,7 +6289,11 @@ std::string TempDir() {
else
else
return
std
::
string
(
temp_dir
)
+
"
\\
"
;
return
std
::
string
(
temp_dir
)
+
"
\\
"
;
#elif GTEST_OS_LINUX_ANDROID
#elif GTEST_OS_LINUX_ANDROID
return
"/sdcard/"
;
const
char
*
temp_dir
=
internal
::
posix
::
GetEnv
(
"TEST_TMPDIR"
);
if
(
temp_dir
==
nullptr
||
temp_dir
[
0
]
==
'\0'
)
return
"/data/local/tmp/"
;
else
return
temp_dir
;
#else
#else
return
"/tmp/"
;
return
"/tmp/"
;
#endif // GTEST_OS_WINDOWS_MOBILE
#endif // GTEST_OS_WINDOWS_MOBILE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment