Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
1c682e0b
Commit
1c682e0b
authored
Oct 18, 2017
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bazel build
parent
ecf29571
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
BUILD
BUILD
+1
-0
io_win32_unittest.cc
src/google/protobuf/stubs/io_win32_unittest.cc
+2
-4
No files found.
BUILD
View file @
1c682e0b
...
@@ -541,6 +541,7 @@ cc_test(
...
@@ -541,6 +541,7 @@ cc_test(
"src/google/protobuf/any_test.cc",
"src/google/protobuf/any_test.cc",
"src/google/protobuf/arena_unittest.cc",
"src/google/protobuf/arena_unittest.cc",
"src/google/protobuf/arenastring_unittest.cc",
"src/google/protobuf/arenastring_unittest.cc",
"src/google/protobuf/compiler/annotation_test_util.cc",
"src/google/protobuf/compiler/command_line_interface_unittest.cc",
"src/google/protobuf/compiler/command_line_interface_unittest.cc",
"src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc",
"src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc",
"src/google/protobuf/compiler/cpp/cpp_move_unittest.cc",
"src/google/protobuf/compiler/cpp/cpp_move_unittest.cc",
...
...
src/google/protobuf/stubs/io_win32_unittest.cc
View file @
1c682e0b
...
@@ -123,8 +123,7 @@ void IoWin32Test::SetUp() {
...
@@ -123,8 +123,7 @@ void IoWin32Test::SetUp() {
// "\\?\" prefix (except on Windows 10 version 1607 and beyond, after
// "\\?\" prefix (except on Windows 10 version 1607 and beyond, after
// opting in to long paths by default [1]).
// opting in to long paths by default [1]).
//
//
// [1] https://msdn.microsoft.com/en-us/library/windows/ \
// [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath
// desktop/aa365247(v=vs.85).aspx#maxpath
DWORD
result
=
::
GetCurrentDirectoryA
(
MAX_PATH
,
buffer
);
DWORD
result
=
::
GetCurrentDirectoryA
(
MAX_PATH
,
buffer
);
if
(
result
>
0
)
{
if
(
result
>
0
)
{
test_tmpdir
=
string
(
buffer
);
test_tmpdir
=
string
(
buffer
);
...
@@ -142,8 +141,7 @@ void IoWin32Test::SetUp() {
...
@@ -142,8 +141,7 @@ void IoWin32Test::SetUp() {
test_tmpdir
+=
"
\\
io_win32_unittest.tmp"
;
test_tmpdir
+=
"
\\
io_win32_unittest.tmp"
;
// CreateDirectoryA's limit is 248 chars, see MSDN.
// CreateDirectoryA's limit is 248 chars, see MSDN.
// https://msdn.microsoft.com/en-us/library/windows/ \
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa363855(v=vs.85).aspx
// desktop/aa363855(v=vs.85).aspx
wtest_tmpdir
=
testonly_path_to_winpath
(
test_tmpdir
);
wtest_tmpdir
=
testonly_path_to_winpath
(
test_tmpdir
);
if
(
!
DeleteAllUnder
(
wtest_tmpdir
)
||
!
CreateAllUnder
(
wtest_tmpdir
))
{
if
(
!
DeleteAllUnder
(
wtest_tmpdir
)
||
!
CreateAllUnder
(
wtest_tmpdir
))
{
GOOGLE_CHECK_OK
(
false
);
GOOGLE_CHECK_OK
(
false
);
...
...
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