Skip to content

Instantly share code, notes, and snippets.

@rurounijones
Created January 13, 2012 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurounijones/1604031 to your computer and use it in GitHub Desktop.
Save rurounijones/1604031 to your computer and use it in GitHub Desktop.
Nokogiri est failures
jjones@jjones-desktop:~/Projects/nokogiri/nokogiri$ ../jruby-1.6.5.1/bin/jruby -S rake
(in /home/jjones/Projects/nokogiri/nokogiri)
install -c tmp/java/nokogiri/nokogiri.jar lib/nokogiri/nokogiri.jar
/home/jjones/Projects/nokogiri/nokogiri/../jruby-1.6.5.1/bin/jruby -w -I.:lib:bin:test:. -e 'require "rubygems"; require "minitest/autorun"; require "test/test_memory_leak.rb"; require "test/test_encoding_handler.rb"; require "test/test_convert_xpath.rb"; require "test/test_nokogiri.rb"; require "test/test_xslt_transforms.rb"; require "test/test_css_cache.rb"; require "test/test_reader.rb"; require "test/test_soap4r_sax.rb"; require "test/xslt/test_exception_handling.rb"; require "test/xslt/test_custom_functions.rb"; require "test/html/test_named_characters.rb"; require "test/html/test_node_encoding.rb"; require "test/html/test_node.rb"; require "test/html/test_builder.rb"; require "test/html/test_document_encoding.rb"; require "test/html/test_document_fragment.rb"; require "test/html/test_document.rb"; require "test/html/test_element_description.rb"; require "test/html/sax/test_parser_context.rb"; require "test/html/sax/test_parser.rb"; require "test/xml/test_element_content.rb"; require "test/xml/test_node_attributes.rb"; require "test/xml/test_namespace.rb"; require "test/xml/test_attribute_decl.rb"; require "test/xml/test_node_inheritance.rb"; require "test/xml/test_processing_instruction.rb"; require "test/xml/test_syntax_error.rb"; require "test/xml/test_xinclude.rb"; require "test/xml/test_relax_ng.rb"; require "test/xml/test_node_encoding.rb"; require "test/xml/test_entity_decl.rb"; require "test/xml/test_cdata.rb"; require "test/xml/test_c14n.rb"; require "test/xml/test_comment.rb"; require "test/xml/test_node_set.rb"; require "test/xml/test_element_decl.rb"; require "test/xml/test_attr.rb"; require "test/xml/test_node.rb"; require "test/xml/test_schema.rb"; require "test/xml/test_builder.rb"; require "test/xml/test_dtd_encoding.rb"; require "test/xml/test_xpath.rb"; require "test/xml/test_parse_options.rb"; require "test/xml/test_node_reparenting.rb"; require "test/xml/test_entity_reference.rb"; require "test/xml/test_unparented_node.rb"; require "test/xml/test_text.rb"; require "test/xml/test_document_encoding.rb"; require "test/xml/test_document_fragment.rb"; require "test/xml/test_dtd.rb"; require "test/xml/test_document.rb"; require "test/xml/test_reader_encoding.rb"; require "test/xml/node/test_save_options.rb"; require "test/xml/node/test_subclass.rb"; require "test/xml/sax/test_push_parser.rb"; require "test/xml/sax/test_parser_context.rb"; require "test/xml/sax/test_parser.rb"; require "test/decorators/test_slop.rb"; require "test/css/test_nthiness.rb"; require "test/css/test_xpath_visitor.rb"; require "test/css/test_parser.rb"; require "test/css/test_tokenizer.rb"' --
/home/jjones/Projects/nokogiri/nokogiri/lib/nokogiri/css.rb:3 warning: global variable `$-w' not initialized
/home/jjones/Projects/nokogiri/nokogiri/test/helper.rb:10: version info: {"warnings"=>[], "nokogiri"=>"1.5.0", "ruby"=>{"version"=>"1.8.7", "platform"=>"java", "description"=>"jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (Java HotSpot(TM) Client VM 1.6.0_26) [linux-i386-java]", "engine"=>"jruby", "jruby"=>"1.6.5.1"}}
Run options: --seed 29211
# Running tests:
.......................................................................................................................................................................................................................................................................................................................F.............................................F.........................................................................................................................................................................................................................................................................................S............................................................................................F........................................................................................................SSSE.................SS..............................................................................................................................................................................................................................................
Finished tests in 13.665000s, 80.3513 tests/s, 180.9001 assertions/s.
1) Failure:
test_broken_encoding(Nokogiri::XML::SAX::TestPushParser) [./test/xml/sax/test_push_parser.rb:150]:
Expected: "Gau\337"
Actual: "Gau"
2) Failure:
test_c14n_modes(Nokogiri::XML::TestC14N) [./test/xml/test_c14n.rb:136]:
--- expected
+++ actual
@@ -1,3 +1,3 @@
-"<n1:elem2 xmlns:n1=\"http://example.net\" xml:lang=\"en\">
- <n3:stuff xmlns:n3=\"ftp://example.org\"></n3:stuff>
+"<n1:elem2 xmlns:n0=\"http://foobar.org\" xmlns:n1=\"http://example.net\" xmlns:n3=\"ftp://example.org\" xml:lang=\"en\">
+ <n3:stuff></n3:stuff>
</n1:elem2>"
3) Failure:
test_reference_after_delete(Nokogiri::XML::TestNodeSet::TestNodeSetNamespaces) [./test/xml/test_node_set.rb:29]:
--- expected
+++ actual
@@ -1 +1 @@
-"http://www.w3.org/XML/1998/namespace"
+"http://example.com"
4) Error:
test_xinclude_on_document_parse(Nokogiri::XML::TestXInclude):
Java::JavaLang::ClassCastException: org.jruby.RubyNil cannot be cast to nokogiri.XmlDtd
nokogiri.internals.XmlDomParserContext.wrapDocument(XmlDomParserContext.java:214)
nokogiri.internals.XmlDomParserContext.parse(XmlDomParserContext.java:229)
nokogiri.XmlDocument.newFromData(XmlDocument.java:315)
nokogiri.XmlDocument.read_io(XmlDocument.java:322)
nokogiri.XmlDocument$s$0$0$read_io.call(XmlDocument$s$0$0$read_io.gen:65535)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:69)
rubyjit.parse_53A1C1C778955843075F7EA28EA1DA201293EF0F.__file__(/home/jjones/Projects/nokogiri/nokogiri/lib/nokogiri/xml/document.rb:26)
rubyjit.parse_53A1C1C778955843075F7EA28EA1DA201293EF0F.__file__(/home/jjones/Projects/nokogiri/nokogiri/lib/nokogiri/xml/document.rb)
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:87)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:78)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:84)
rubyjit.XML_3C8B1B19C7F671C76812979B52A14A068B383C35.__file__(/home/jjones/Projects/nokogiri/nokogiri/lib/nokogiri/xml.rb:33)
rubyjit.XML_3C8B1B19C7F671C76812979B52A14A068B383C35.__file__(/home/jjones/Projects/nokogiri/nokogiri/lib/nokogiri/xml.rb)
org.jruby.ast.executable.AbstractScript.__file__(AbstractScript.java:42)
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:187)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:187)
org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java:60)
org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
org.jruby.runtime.Block.yield(Block.java:130)
org.jruby.RubyIO.open(RubyIO.java:1115)
org.jruby.RubyIO$s$0$2$open.call(RubyIO$s$0$2$open.gen:65535)
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:211)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:187)
org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java:60)
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171)
org.jruby.RubyClass.finvoke(RubyClass.java:536)
org.jruby.RubyBasicObject.send(RubyBasicObject.java:2767)
org.jruby.RubyKernel.send(RubyKernel.java:2093)
org.jruby.RubyKernel$s$send.call(RubyKernel$s$send.gen:65535)
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:266)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
1098 tests, 2472 assertions, 3 failures, 1 errors, 6 skips
rake aborted!
Command failed with status (1): [/home/jjones/Projects/nokogiri/nokogiri/.....]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment