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
9d965bbe
Commit
9d965bbe
authored
Feb 11, 2010
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds Solaris support to test scripts.
parent
cfcbc298
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
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 {
...
@@ -460,8 +460,15 @@ class CapturedStream {
char
temp_file_path
[
MAX_PATH
+
1
]
=
{
'\0'
};
// NOLINT
char
temp_file_path
[
MAX_PATH
+
1
]
=
{
'\0'
};
// NOLINT
::
GetTempPathA
(
sizeof
(
temp_dir_path
),
temp_dir_path
);
::
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
);
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
;
filename_
=
temp_file_path
;
#else
#else
// There's no guarantee that a test has write access to the
// 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