llvm.org GIT mirror llvm / 4fbaa50
GTest on Android needs a custom tmpdir path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163501 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 8 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
504504 GTEST_CHECK_(captured_fd != -1) << "Unable to open temporary file "
505505 << temp_file_path;
506506 filename_ = temp_file_path;
507 #elif GTEST_OS_LINUX_ANDROID
508 char name_template[] = "/sdcard/captured_stderr.XXXXXX";
509 const int captured_fd = mkstemp(name_template);
510 filename_ = name_template;
507511 # else
508512 // There's no guarantee that a test has write access to the
509513 // current directory, so we create the temporary file in the /tmp