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 9130 - XQTS:CVS: errors-and-optimization-1, 6
Summary: XQTS:CVS: errors-and-optimization-1, 6
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-23 16:22 UTC by Tim Mills
Modified: 2010-09-08 10:11 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2010-02-23 16:22:04 UTC
errors-and-optimization-1 is marked in the catalog as expecting a runtime error.  The query contains a type error (XPTY0004).  The catalog entry has no expected-error element.

errors-and-optimization-6 contains a static error (XPST0017) - fn:QName expects two arguments.  The catalog lists it as expecting FOCA0002


(: Name: errors-and-optimization-6.xq :)
(: Description: 

   Expressions must not be rewritten in such a way as to create or
   remove static errors. 
   
:)

(: insert-start :)
(: insert-end :)

let $s := "var:QName"
return QName($s)
Comment 1 Jonathan Robie 2010-03-26 17:05:58 UTC
I have checked in result files for queries 1 and 3 - was 6 the right number here?
Comment 2 Nick Jones 2010-04-08 12:46:07 UTC
Yes. There was a change required for 6.
Comment 3 Nick Jones 2010-04-08 12:47:02 UTC
errors-and-optimization-1 also now has a spurious newline at the end of the result.
Comment 4 Jonathan Robie 2010-08-04 18:07:27 UTC
Fixed the error for errors-and-optimization-6 - it now expects XPST0017.
Comment 5 Tim Mills 2010-08-12 15:19:30 UTC
Thanks.

errors-and-optimization-6 is fixed, but errors-and-optimization-1 remains in error.  

See Comment 3.
Comment 6 Tim Mills 2010-08-18 08:28:35 UTC
errors-and-optimization-6 is incorrectly marked in the catalog as is-XPath2="true".
Comment 7 Jonathan Robie 2010-09-07 22:35:30 UTC
(In reply to comment #5)
> Thanks.
> 
> errors-and-optimization-6 is fixed, but errors-and-optimization-1 remains in
> error.  


OK, I've removed the extraneous newline now.
Comment 8 Jonathan Robie 2010-09-07 22:36:55 UTC
(In reply to comment #6)
> errors-and-optimization-6 is incorrectly marked in the catalog as
> is-XPath2="true".

I modified it so it runs as either XQuery or XPath:

for $s in "var:QName"
return QName($s)
Comment 9 Tim Mills 2010-09-08 10:10:45 UTC
I can confirm that this is now fixed.  Thanks.