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

RunTestReport causes NullPointerException when t:output contains non-xml content #251

Closed
dmj opened this issue Feb 8, 2017 · 0 comments
Closed

Comments

@dmj
Copy link

@dmj dmj commented Feb 8, 2017

<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
	ignore-whitespace-differences="true">

  <t:title>Test directory-list-003</t:title>

  <t:pipeline>
    <p:declare-step version='1.0' xmlns:p="http://www.w3.org/ns/xproc"
		    xmlns:px="http://example.org/ns/pipelines"
		    xmlns:c="http://www.w3.org/ns/xproc-step"
		    name="main">
      <p:output port="result"/>

      <p:directory-list name="dirlist" path=".."/>

    </p:declare-step>
  </t:pipeline>

  <t:output port='result'>a</t:output>

</t:test>
dmaus@x220i ~/projects/1.0-test-suite (git)-[xproc10] % java -cp ~/bin/xmlcalabash-1.1.15-97/xmlcalabash-1.1.15-97.jar com.xmlcalabash.drivers.RunTestReport -D tests/required/directory-list-003.xml
Test: tests/required/directory-list-003.xml
Failed to obtain EE processor; using HE instead.
<test-report xmlns='http://xproc.org/ns/testreport'>
<title>XProc Test Results for XML Calabash</title>
<date>2017-02-08T15:02:52</date>
<processor>
  <psvi-supported>false</psvi-supported>
  <vendor-uri>http://xmlcalabash.com/</vendor-uri>
  <version>1.1.15 (for Saxon 9.7.0.11/HE)</version>
  <xpath-version>2.0</xpath-version>
  <name>XML Calabash</name>
  <xproc-version>1.0</xproc-version>
  <language>en-US</language>
  <vendor>Norman Walsh</vendor>
</processor>
Running test: file:///home/dmaus/projects/1.0-test-suite/tests/required/directory-list-003.xml
Exception in thread "main" java.lang.NullPointerException
	at com.xmlcalabash.drivers.RunTestReport.runTest(RunTestReport.java:360)
	at com.xmlcalabash.drivers.RunTestReport.run(RunTestReport.java:219)
	at com.xmlcalabash.drivers.RunTestReport.reportRun(RunTestReport.java:246)
	at com.xmlcalabash.drivers.RunTestReport.runTests(RunTestReport.java:175)
	at com.xmlcalabash.drivers.RunTestReport.main(RunTestReport.java:167)
java -cp ~/bin/xmlcalabash-1.1.15-97/xmlcalabash-1.1.15-97.jar  -D   7.32s user 0.12s system 144% cpu 5.134 total
1 dmaus@x220i ~/projects/1.0-test-suite (git)-[xproc10] % 
java version "1.7.0_121"
OpenJDK Runtime Environment (IcedTea 2.6.8) (Gentoo icedtea-7.2.6.8)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
@ndw ndw closed this in e87cbc4 Apr 6, 2017
ndw added a commit that referenced this issue Apr 6, 2017
ndw added a commit that referenced this issue Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.