Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 649 by kra...@gmail.com: Windows: IE Dev Channel (App-V?) causes
protobuf tests to fail on the C: drive
http://code.google.com/p/protobuf/issues/detail?id=649
What steps will reproduce the problem?
1. Install IE dev channel
2. Build protobuf using the MSVC project files
3. Run the test binaries
What is the expected output? What do you see instead?
I expect all tests to pass.
Instead, I get an error in
CommandLineInterfaceTest.OutputDirectoryIsFileError.
The error I get is:
..\src\google\protobuf\compiler\command_line_interface_unittest.cc(349):
error: Value of: expected_substring
Actual: "foo.proto/: Not a directory"
Expected: a substring of error_text_
Which
is: "s6j4./proto2_cli_test_temp/foo.proto/foo.proto.MockCodeGenerator.test_generator:
No such file or directory"
I spent some time debugging this issue on the mumble-releng issue tracker:
https://github.com/mumble-voip/mumble-releng/issues/5
It turns out that it's IE Dev Channel that's causing the issue.
The issue is the following:
We have a file, foo.proto on the filesystem. We want to use the access()
function to determine whether the file is a directory, so we append a slash
at the end.
Calling the function with IE Dev Channel (and thus App-V) installed yields
the following:
access("foo.proto/", F_OK) == 0
Without IE Dev Channel/App-V:
access("foo.proto/", F_OK) == -1
This functionality is used in VerifyDirectoryExists in
command_line_interface.cc in the protoc compiler:
https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/command_line_interface.cc#146
I am reporting the issue here so there's a record of the issue in the
protobuf tracker. I'll submit a bug report to Microsoft as well.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.