Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
9d965bbe
Commit
9d965bbe
authored
Feb 11, 2010
by
vladlosev
Browse files
Adds Solaris support to test scripts.
parent
cfcbc298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/gtest-port.cc
src/gtest-port.cc
+8
-1
No files found.
src/gtest-port.cc
View file @
9d965bbe
...
...
@@ -460,8 +460,15 @@ class CapturedStream {
char
temp_file_path
[
MAX_PATH
+
1
]
=
{
'\0'
};
// NOLINT
::
GetTempPathA
(
sizeof
(
temp_dir_path
),
temp_dir_path
);
::
GetTempFileNameA
(
temp_dir_path
,
"gtest_redir"
,
0
,
temp_file_path
);
const
UINT
success
=
::
GetTempFileNameA
(
temp_dir_path
,
"gtest_redir"
,
0
,
// Generate unique file name.
temp_file_path
);
GTEST_CHECK_
(
success
!=
0
)
<<
"Unable to create a temporary file in "
<<
temp_dir_path
;
const
int
captured_fd
=
creat
(
temp_file_path
,
_S_IREAD
|
_S_IWRITE
);
GTEST_CHECK_
(
captured_fd
!=
-
1
)
<<
"Unable to open temporary file "
<<
temp_file_path
;
filename_
=
temp_file_path
;
#else
// There's no guarantee that a test has write access to the
...
...
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