Merge lp:~zorba-coders/zorba/bug_882002 into lp:zorba

Proposed by Sorin Marian Nasoi
Status: Merged
Approved by: Sorin Marian Nasoi
Approved revision: 10528
Merged at revision: 10540
Proposed branch: lp:~zorba-coders/zorba/bug_882002
Merge into: lp:zorba
Diff against target: 65 lines (+7/-8)
4 files modified
src/runtime/collections/collections_impl.cpp (+1/-1)
test/rbkt/Queries/CMakeLists.txt (+5/-1)
test/rbkt/Queries/w3c_known_failures.txt (+1/-0)
test/rbkt/Scripts/w3c/generate-submission-xqts.xq (+0/-6)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug_882002
Reviewer Review Type Date Requested Status
Sorin Marian Nasoi Approve
Daniel Turcanu (community) Approve
Review via email: mp+80454@code.launchpad.net

Commit message

Fix for bug lp:882002:
- changed the error thrown for W3C test fn-collection-2 according to the decision took by the W3C in http://www.w3.org/Bugs/Public/show_bug.cgi?id=12542 that is reflected in the latest XQuery 3.0 F&O spec for fn:collection: "An error is raised [err:FODC0002] if available collections provides no mapping for the absolutized URI."
- added a new expected result for the RQ because it uses XQTS_1_0_3 where the expected error for this test is [err:FODC0004].
- removed the exception added for fn-collection-2 in the script that generates the conformance results for W3C

Description of the change

Fix for bug lp:882002:
- changed the error thrown for W3C test fn-collection-2 according to the decision took by the W3C in http://www.w3.org/Bugs/Public/show_bug.cgi?id=12542 that is reflected in the latest XQuery 3.0 F&O spec for fn:collection: "An error is raised [err:FODC0002] if available collections provides no mapping for the absolutized URI."
- added a new expected result for the RQ because it uses XQTS_1_0_3 where the expected error for this test is [err:FODC0004].
- removed the exception added for fn-collection-2 in the script that generates the conformance results for W3C

To post a comment you must log in.
Revision history for this message
Daniel Turcanu (danielturcanu) wrote :

Ok

review: Approve
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Reviewed and approved.

review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug_882002-2011-11-09T13-47-11.43Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/runtime/collections/collections_impl.cpp'
2--- src/runtime/collections/collections_impl.cpp 2011-11-01 13:47:10 +0000
3+++ src/runtime/collections/collections_impl.cpp 2011-11-02 15:51:46 +0000
4@@ -161,7 +161,7 @@
5 if ( lCollResource == 0 || !(coll = lCollResource->getCollection()) )
6 {
7 throw XQUERY_EXCEPTION(
8- err::FODC0004,
9+ err::FODC0002,
10 ERROR_PARAMS( resolvedURIString, lErrorMessage ),
11 ERROR_LOC( loc )
12 );
13
14=== modified file 'test/rbkt/Queries/CMakeLists.txt'
15--- test/rbkt/Queries/CMakeLists.txt 2011-10-13 12:46:50 +0000
16+++ test/rbkt/Queries/CMakeLists.txt 2011-11-02 15:51:46 +0000
17@@ -201,7 +201,7 @@
18 ENDIF (ZORBATEST_TESTDRIVER_MT_AVAILABLE AND ZORBATEST_USE_MT_XQTS AND
19 IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/w3c_testsuite")
20
21-SET(ZORBA_TEST_W3C_TO_SUBMIT_RESULTS OFF CACHE BOOL "Bool var that says if w3c testing results are to be submited to w3c, or just for internal testing. If they are for internal testing then we can mark some failing tests as expected results.")
22+SET(ZORBA_TEST_W3C_TO_SUBMIT_RESULTS OFF CACHE BOOL "Bool var that says if w3c testing results are to be submitted to w3c, or just for internal testing. If they are for internal testing then we can mark some failing tests as expected results.")
23 MARK_AS_ADVANCED(ZORBA_TEST_W3C_TO_SUBMIT_RESULTS)
24
25 ####
26@@ -230,6 +230,10 @@
27 EXPECTED_FAILURE (test/rbkt/w3c_testsuite/XQueryX/StaticTyping/STPathExpr/STSteps/STAxes/ST-Axes014 3355019)
28 EXPECTED_FAILURE (test/rbkt/w3c_testsuite/XQueryX/StaticTyping/STPathExpr/STSteps/STAxes/ST-Axes015 3355019)
29 ENDIF(ZORBA_TEST_XQUERYX)
30+
31+ #this is marked as expected failure because the RQ uses XQTS_1_0_3. In that version the expected result is err:FODC0004 instead of err:FODC0002.
32+ #W3C has changed the expected result for this test in the meantime: please see http://www.w3.org/Bugs/Public/show_bug.cgi?id=12542
33+ EXPECTED_FAILURE (test/rbkt/w3c_testsuite/XQuery/Functions/NodeSeqFunc/SeqCollectionFunc/fn-collection-2 882002)
34
35 ENDIF (FOUND_XQTS AND NOT ZORBA_TEST_W3C_TO_SUBMIT_RESULTS)
36
37
38=== modified file 'test/rbkt/Queries/w3c_known_failures.txt'
39--- test/rbkt/Queries/w3c_known_failures.txt 2011-10-13 12:46:50 +0000
40+++ test/rbkt/Queries/w3c_known_failures.txt 2011-11-02 15:51:46 +0000
41@@ -69,6 +69,7 @@
42 test/rbkt/w3c_testsuite/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch10
43 test/rbkt/w3c_testsuite/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/K2-MatchesFunc-6
44 test/rbkt/w3c_testsuite/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch09
45+test/rbkt/w3c_testsuite/XQuery/Functions/NodeSeqFunc/SeqCollectionFunc/fn-collection-2
46 test/rbkt/w3c_testsuite/XQuery/Functions/HigherOrder/Map/map-004
47 test/rbkt/w3c_testsuite/XQuery/Functions/HigherOrder/Map/map-903
48 test/rbkt/w3c_testsuite/XQuery/Functions/HigherOrder/Map/map-007
49
50=== modified file 'test/rbkt/Scripts/w3c/generate-submission-xqts.xq'
51--- test/rbkt/Scripts/w3c/generate-submission-xqts.xq 2011-10-07 08:28:43 +0000
52+++ test/rbkt/Scripts/w3c/generate-submission-xqts.xq 2011-11-02 15:51:46 +0000
53@@ -83,12 +83,6 @@
54 result="pass"
55 comment="Opened W3C bug #11584."
56 />
57- else if($testname = 'fn-collection-2')then
58- <test-case
59- name="{$testname}"
60- result="pass"
61- comment="Opened W3C bug #12542."
62- />
63 else
64 <test-case
65 name="{$testname}"

Subscribers

People subscribed via source and target branches