Skip to content

(upstream libxml2) test errors #3156

@flavorjones

Description

@flavorjones

Seeing these errors testing against GNOME/libxml2@6a49bb7

  1) Failure:
Nokogiri::XML::CDATA::.new#test_0003_has nil content when passed nil [test/xml/test_cdata.rb:35]:
Expected "" to be nil.

  2) Failure:
ad hoc node reparenting behavior::#add_next_sibling::with a text node after#test_0001_should not defensively dup the 'after' text node [test/xml/test_node_reparenting.rb:665]:
Expected: "after"
  Actual: "xafter"

  3) Failure:
ad hoc node reparenting behavior::#add_previous_sibling::with a text node before#test_0001_should not defensively dup the 'before' text node [test/xml/test_node_reparenting.rb:626]:
Expected: "before"
  Actual: "beforex"

Also I'm seeing a memory leak (as reported by ruby_memcheck):

120 bytes in 1 blocks are definitely lost in loss record 20,941 of 29,501
  malloc (at /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
  objspace_xmalloc0 (gc.c:12337)
  xmlNewElem (tree.c:2069)
  xmlNewDocNodeEatName (tree.c:2174)
  xmlSAX2StartElementNs (SAX2.c:2081)
  xmlParseStartTag2.constprop.0 (parser.c:9490)
  xmlParseElementStart (parser.c:9886)
  xmlParseContentInternal (parser.c:9728)
  xmlParseInNodeContext (parser.c:12446)
 *in_context (xml_node.c:2183)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions