ocramz / xeno

Fast Haskell XML parser
Other
120 stars 33 forks source link

test suite failure: data/books-4kb.xml: openBinaryFile: does not exist #37

Closed DanBurton closed 4 years ago

DanBurton commented 4 years ago

As seen on the stackage build server. This is presumably caused by the test xml file not being included in the tarball uploaded to hackage.

Test suite failure for package xeno-0.4
    xeno-test:  exited with: ExitFailure 1
Full log available at /var/stackage/work/unpack-dir/.stack-work/logs/xeno-0.4$
test.log

    Right (Node "a" [("attr","a")] [Element (Node "img" [] [])])

    Xeno.DOM tests
      test 1 FAILED [1]
    Xeno.DOM tests
      DOM from bytestring substring
      Leading whitespace characters are accepted by parse
      children test
      attributes
      xml prologue test
    hexml tests
      "<test id='bob'>here<extra/>there</test>"
      "<test /><close />"
      "<test /><!-- comment > --><close />"
      "<test id=\"bob value\" another-attr=\"test with <\">here </test> more $
ext at the end<close />"
      "<test></more>"
      "<test"
      "<?xml version=\"1.1\"?>\n<greeting>Hello, world!</greeting>"
      "<some-example/>"
      "<a numeric1=\"attribute\"/>"
      "<also.a.dot></also.a.dot>"
      "<test><![CDATA[Oneliner CDATA.]]></test>"
      "<test><![CDATA[<strong>This is strong but not XML tags.</strong>]]></t$
st>"
      "<test><![CDATA[A lonely ], sad isn't it?]]></test>"
      namespaces
    robust XML tests
      DOM from bytestring substring
      Leading whitespace characters are accepted by parse
      children test
      attributes
      xml prologue test
      html doctype test
      hexml tests
        "<test id='bob'>here<extra/>there</test>"
        "<test /><close />"
        "<test /><!-- comment > --><close />"
        "<test id=\"bob value\" another-attr=\"test with <\">here </test> mor$
 text at the end<close />"
        "<test></more>"
        "<test"
        "<?xml version=\"1.1\"?>\n<greeting>Hello, world!</greeting>"
        "<some-example/>"
        "<a numeric1=\"attribute\"/>"
        "<also.a.dot></also.a.dot>"
        "<test><![CDATA[Oneliner CDATA.]]></test>"
        "<test><![CDATA[<strong>This is strong but not XML tags.</strong>]]></
test>"
        "<test><![CDATA[A lonely ], sad isn't it?]]></test>"
        namespaces
      recovers unclosed tag
      ignores too many closing tags
    skipDoctype
      strips initial doctype declaration
      strips doctype after spaces
      does not strip anything after or inside element

    Failures:

      test/Main.hs:25:5:
      1) Xeno.DOM tests test 1
           uncaught exception: IOException of type NoSuchThing
           data/books-4kb.xml: openBinaryFile: does not exist (No such file or
 directory)

      To rerun use: --match "/Xeno.DOM tests/test 1/"

    Randomized with seed 1307985275

    Finished in 0.0129 seconds
    45 examples, 1 failure
ocramz commented 4 years ago

Thanks @DanBurton for reporting, fixed in 0.4.1