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
c5be3930
Commit
c5be3930
authored
Jun 09, 2021
by
Abseil Team
Committed by
Dino Radaković
Jun 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
cleanup: fix spurious MSAN warnings with Clang 12 PiperOrigin-RevId: 378430614
parent
aa533abf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gtest-filepath.cc
googletest/src/gtest-filepath.cc
+2
-2
No files found.
googletest/src/gtest-filepath.cc
View file @
c5be3930
...
@@ -210,7 +210,7 @@ bool FilePath::FileOrDirectoryExists() const {
...
@@ -210,7 +210,7 @@ bool FilePath::FileOrDirectoryExists() const {
delete
[]
unicode
;
delete
[]
unicode
;
return
attributes
!=
kInvalidFileAttributes
;
return
attributes
!=
kInvalidFileAttributes
;
#else
#else
posix
::
StatStruct
file_stat
;
posix
::
StatStruct
file_stat
{}
;
return
posix
::
Stat
(
pathname_
.
c_str
(),
&
file_stat
)
==
0
;
return
posix
::
Stat
(
pathname_
.
c_str
(),
&
file_stat
)
==
0
;
#endif // GTEST_OS_WINDOWS_MOBILE
#endif // GTEST_OS_WINDOWS_MOBILE
}
}
...
@@ -237,7 +237,7 @@ bool FilePath::DirectoryExists() const {
...
@@ -237,7 +237,7 @@ bool FilePath::DirectoryExists() const {
result
=
true
;
result
=
true
;
}
}
#else
#else
posix
::
StatStruct
file_stat
;
posix
::
StatStruct
file_stat
{}
;
result
=
posix
::
Stat
(
path
.
c_str
(),
&
file_stat
)
==
0
&&
result
=
posix
::
Stat
(
path
.
c_str
(),
&
file_stat
)
==
0
&&
posix
::
IsDir
(
file_stat
);
posix
::
IsDir
(
file_stat
);
#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