This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29097 - try-012 should not expect a specific error description
Summary: try-012 should not expect a specific error description
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-28 20:37 UTC by Josh Spiegel
Modified: 2015-09-23 16:50 UTC (History)
0 users

See Also:


Attachments

Description Josh Spiegel 2015-08-28 20:37:16 UTC
<test-case name="try-012">
    <description>Use err:description local variable, implicitly declared</description>
    <created by="O'Neil Delpratt" on="2012-03-02"/>
    <environment ref="err"/><test><![CDATA[
        declare function local:f($d as xs:integer) { 10 div $d };
        try { local:f(0) } catch * {$err:description}
      ]]></test>
    <result>
      <any-of>
        <assert-string-value>Integer division by zero</assert-string-value>
        <assert-type>xs:string</assert-type>
      </any-of>
    </result>
  </test-case>

I don't think an error description is defined for err:FOAR0001 so this test shouldn't assert description "Integer division by zero".  Also, I think it is valid for $err:description to be empty.
Comment 1 O'Neil Delpratt 2015-09-08 15:38:34 UTC
WG. agrees with proposal by Josh. I will make the fix accordingly
Comment 2 O'Neil Delpratt 2015-09-11 13:58:24 UTC
Bug fix applied in cvs.
Comment 3 Josh Spiegel 2015-09-23 16:50:51 UTC
The change applied is not enough because $description may also be empty.  It needs to be something like:

<any-of>
  <assert-type>xs:string</assert-type>
  <assert-empty/>
</any-of>

I will apply this change and leave the bug resolved.