mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
GTest on Android needs a custom tmpdir path.
llvm-svn: 163501
This commit is contained in:
parent
edd576d454
commit
24b5faa541
@ -505,6 +505,10 @@ class CapturedStream {
|
||||
GTEST_CHECK_(captured_fd != -1) << "Unable to open temporary file "
|
||||
<< temp_file_path;
|
||||
filename_ = temp_file_path;
|
||||
#elif GTEST_OS_LINUX_ANDROID
|
||||
char name_template[] = "/sdcard/captured_stderr.XXXXXX";
|
||||
const int captured_fd = mkstemp(name_template);
|
||||
filename_ = name_template;
|
||||
# else
|
||||
// There's no guarantee that a test has write access to the
|
||||
// current directory, so we create the temporary file in the /tmp
|
||||
|
Loading…
Reference in New Issue
Block a user