Yes, some of the tests are explicitly testing error cases, which causes
error messages to be logged.  If they say they passed in the end, then they
passed.

On Tue, Jun 1, 2010 at 4:25 PM, Vitalii Dolia <[email protected]> wrote:

> Hi,
>
> When running protobuf tests I'm getting bunch of errors (assertions),
> as follows:
>
> libprotobuf ERROR ..\src\google\protobuf\descriptor.cc:2222] Invalid
> proto descriptor for file "foo.proto":
> libprotobuf ERROR ..\src\google\protobuf\descriptor.cc:2225]
> foo.proto: A file with this name is already in the pool.
> libprotobuf ERROR ..\src\google\protobuf\io\printer.cc:98]  Undefined
> variable: nosuchvar
> libprotobuf ERROR ..\src\google\protobuf\io\printer.cc:85]  Unclosed
> variable name.
> libprotobuf ERROR ..\src\google\protobuf\io\printer.cc:141]  Outdent()
> without matching Indent().
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected
> integer.
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Integer out
> of range.
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:3: Invalid value
> for boolean field "optional_bool". Value: "on".
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:2: Invalid value
> for boolean field "optional_bool". Value: "a".
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:5: Invalid value
> for boolean field "optional_bool". Value: "True".
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected
> double.
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected
> string.
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected
> identifier.
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:7: Unknown
> enumeration value of "FOOBAR" for field "optional_nested_enum".
> libprotobuf ERROR ..\src\google\protobuf\text_format.cc:169] Error
> parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected "{",
> found "any".
> libprotobuf ERROR ..\src\google\protobuf\io\tokenizer.cc:587]
> Tokenizer::ParseInteger() passed text that could not have been
> tokenized as an integer: zxy
> libprotobuf ERROR ..\src\google\protobuf\io\tokenizer.cc:620]
> Tokenizer::ParseFloat() passed text that could not have been tokenized
> as a float: zxy
> libprotobuf ERROR ..\src\google\protobuf\io\tokenizer.cc:620]
> Tokenizer::ParseFloat() passed text that could not have been tokenized
> as a float: 1-e0
> libprotobuf ERROR ..\src\google\protobuf\io\tokenizer.cc:620]
> Tokenizer::ParseFloat() passed text that could not have been tokenized
> as a float: -1.0
> libprotobuf ERROR ..\src\google\protobuf\io\tokenizer.cc:630]
> Tokenizer::ParseStringAppend() passed text that could not have been
> tokenized as a string:
> libprotobuf ERROR ..\src\google\protobuf\descriptor_database.cc:57]
> File already exists in database: foo.proto
> libprotobuf ERROR ..\src\google\protobuf\descriptor_database.cc:109]
> Symbol name "Foo" conflicts with the existing symbol "Foo".
> libprotobuf ERROR ..\src\google\protobuf\descriptor_database.cc:160]
> Extension conflicts with extension already in database: extend .Foo
> { bar = 5 }
>
> Even so, tests are appeared to complete successfully with "PASSED 726
> tests" message.
> Is it Ok? Or is it a well known behavior?
>
> Environment:
> protobuf 2.3.0, Visual Studio 2010
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to