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
46bd60b9
Commit
46bd60b9
authored
Apr 28, 2015
by
Bo Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify directory to use in test
Change-Id: Iede1dc4e70427663e0d3c5304fa86b3aebf492b7
parent
9a121853
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
command_line_interface_unittest.cc
...ogle/protobuf/compiler/command_line_interface_unittest.cc
+6
-0
googletest.cc
src/google/protobuf/testing/googletest.cc
+4
-0
No files found.
src/google/protobuf/compiler/command_line_interface_unittest.cc
View file @
46bd60b9
...
...
@@ -288,6 +288,7 @@ void CommandLineInterfaceTest::Run(const string& command) {
if
(
!
disallow_plugins_
)
{
cli_
.
AllowPlugins
(
"prefix-"
);
#ifndef GOOGLE_THIRD_PARTY_PROTOBUF
const
char
*
possible_paths
[]
=
{
// When building with shared libraries, libtool hides the real executable
// in .libs and puts a fake wrapper in the current directory.
...
...
@@ -316,6 +317,11 @@ void CommandLineInterfaceTest::Run(const string& command) {
}
if
(
plugin_path
.
empty
())
{
#else
string
plugin_path
=
"third_party/protobuf/test_plugin"
;
if
(
access
(
plugin_path
.
c_str
(),
F_OK
)
!=
0
)
{
#endif // GOOGLE_THIRD_PARTY_PROTOBUF
GOOGLE_LOG
(
ERROR
)
<<
"Plugin executable not found. Plugin tests are likely to fail."
;
}
else
{
...
...
src/google/protobuf/testing/googletest.cc
View file @
46bd60b9
...
...
@@ -65,6 +65,7 @@ namespace protobuf {
#endif
string
TestSourceDir
()
{
#ifndef GOOGLE_THIRD_PARTY_PROTOBUF
#ifdef _MSC_VER
// Look for the "src" directory.
string
prefix
=
"."
;
...
...
@@ -88,6 +89,9 @@ string TestSourceDir() {
return
result
;
}
#endif
#else
return
"third_party/protobuf/src"
;
#endif // GOOGLE_THIRD_PARTY_PROTOBUF
}
namespace
{
...
...
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