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 22736 - [XQ3TS] typeswitch-in-xpath
Summary: [XQ3TS] typeswitch-in-xpath
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: 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: 2013-07-19 12:56 UTC by Tim Mills
Modified: 2013-07-19 13:59 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2013-07-19 12:56:59 UTC
The test "typeswitch-in-xpath" appears in a test-set with dependency XQ10+, but the test itself can only be run in XP20+.

It's impossible to meet both these requirements simultaneously, and so I think the test can never be run.
Comment 1 O'Neil Delpratt 2013-07-19 13:04:17 UTC
This test looks OK as it has the XP20+ dependency at the test case level.
Comment 2 Tim Mills 2013-07-19 13:14:01 UTC
I'm afraid I don't agree.  

We first test the condition at the test-set level, then the condition in the test-case.  The condition at the test-set level should always be as permissive as that in the test-case.

Since this is the ONLY case in which this occurs, I believe it to be a bug.  As soon as this is fixed, I'll be ready to submit results.
Comment 3 Michael Kay 2013-07-19 13:17:41 UTC
I think there may be some cases where the author of a test has assumed that a dependency at test-case level masks or overrides a dependency of the same type at test-set level. The way the documentation is written, this isn't the case: the dependencies should be cumulative. So I think Tim is right, if XQ10 is required at test-set level and XQ20 is required at test-case level, then the dependencies for this test case can never be satisfied.
Comment 4 Tim Mills 2013-07-19 13:20:35 UTC
A quick fix would be to move this test out of prod/TypeswitchExpr.xml and into misc/CombinedErrorCodes.xml.
Comment 5 O'Neil Delpratt 2013-07-19 13:21:39 UTC
Ok. I will move the test.
Comment 6 O'Neil Delpratt 2013-07-19 13:26:45 UTC
Bug fixed and committed to cvs.
Comment 7 Tim Mills 2013-07-19 13:47:15 UTC
Thanks.
Comment 8 Tim Mills 2013-07-19 13:59:46 UTC
BTW, I've just removed the original version from TypeswitchExpr.xml.