Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing with libxml2 2.9.12 #172

Closed
pravi opened this issue Aug 20, 2021 · 0 comments · Fixed by #173
Closed

Tests failing with libxml2 2.9.12 #172

pravi opened this issue Aug 20, 2021 · 0 comments · Fixed by #173

Comments

@pravi
Copy link
Contributor

pravi commented Aug 20, 2021

Finished in 1.912630s, 182.4712 runs/s, 22097.8406 assertions/s.

  1) Failure:
TestParserContext#test_parse_error [/<<PKGBUILDDIR>>/test/test_parser_context.rb:188]:
Expected: 17
  Actual: 0

  2) Failure:
TestSaxParser#test_parse_error [/<<PKGBUILDDIR>>/test/test_sax_parser.rb:257]:
--- expected
+++ actual
@@ -1 +1 @@
-"error: Fatal error: EndTag: '</' not found at :2."
+"error: Fatal error: Premature end of data in tag Results line 1 at :2."


  3) Failure:
TestParser#test_error [/<<PKGBUILDDIR>>/test/test_parser.rb:274]:
Expected: 20
  Actual: 18

349 runs, 42265 assertions, 3 failures, 0 errors, 0 skips
DOCUMENT
version=1.0
encoding=utf-8
URL=/<<BUILDDIR>>/ruby-libxml-3....
standalone=true
  ELEMENT bands
    ATTRIBUTE genre
      TEXT
        content=metal
    ELEMENT m#C3#B6tley_cr#C3#BCe
      ATTRIBUTE country
        TEXT interned
          content=us
      TEXT
        content=M#C3#B6tley Cr#C3#BCe is an American heavy metal...
    ELEMENT iron_maiden
      ATTRIBUTE country
        TEXT interned
          content=uk
      TEXT
        content=Iron Maiden is a British heavy metal ban...
    ELEMENT bands
      ATTRIBUTE genre
        TEXT
          content=metal
      ELEMENT m#C3#B6tley_cr#C3#BCe
        ATTRIBUTE country
          TEXT
            content=us
        TEXT
          content=M#C3#B6tley Cr#C3#BCe is an American heavy metal...
      ELEMENT iron_maiden
        ATTRIBUTE country
          TEXT
            content=uk
        TEXT
          content=Iron Maiden is a British heavy metal ban...
rake aborted!
sergiodj added a commit to sergiodj/libxml-ruby that referenced this issue Aug 30, 2021
This patch fixes a number of test issues that started happening after
Ubuntu moved to libmlx2 2.9.12+dfsg-2.  They are:

* num_chars has been deprecated and is now always set to 0.  See
  https://gitlab.gnome.org/GNOME/libxml2/-/commit/438e595a8cccbe48de3a0be2e0c291cfe97080b1.

* The "Fatal error: EndTag..." message has been reverted back to
  "Fatal error: Premature end of data...".

* Some adjustments to the expected values of error.int1, error.int2
  and error.str1.

Closes xml4r#172

Signed-off-by: Sergio Durigan Junior <sergio.durigan@canonical.com>
sergiodj added a commit to sergiodj/libxml-ruby that referenced this issue Aug 30, 2021
This patch fixes a number of test issues that started happening after
Ubuntu moved to libmlx2 2.9.12+dfsg-2.  They are:

* num_chars has been deprecated and is now always set to 0.  See
  https://gitlab.gnome.org/GNOME/libxml2/-/commit/438e595a8cccbe48de3a0be2e0c291cfe97080b1.

* The "Fatal error: EndTag..." message has been reverted back to
  "Fatal error: Premature end of data...".

* Some adjustments to the expected values of error.int1, error.int2
  and error.str1.

Closes xml4r#172

Signed-off-by: Sergio Durigan Junior <sergio.durigan@canonical.com>
@cfis cfis closed this as completed in #173 Sep 7, 2021
sergiodj added a commit to sergiodj/libxml-ruby that referenced this issue Sep 19, 2021
This patch fixes a number of test issues that started happening after
Ubuntu moved to libmlx2 2.9.12+dfsg-2.  They are:

* num_chars has been deprecated and is now always set to 0.  See
  https://gitlab.gnome.org/GNOME/libxml2/-/commit/438e595a8cccbe48de3a0be2e0c291cfe97080b1.

* The "Fatal error: EndTag..." message has been reverted back to
  "Fatal error: Premature end of data...".

* Some adjustments to the expected values of error.int1, error.int2
  and error.str1.

Closes xml4r#172

Signed-off-by: Sergio Durigan Junior <sergio.durigan@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant