Merge lp:~zorba-coders/zorba/bug-1117952 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 11472
Merged at revision: 11472
Proposed branch: lp:~zorba-coders/zorba/bug-1117952
Merge into: lp:zorba
Diff against target: 119 lines (+7/-39)
4 files modified
ChangeLog (+1/-0)
bin/CMakeLists.txt (+2/-2)
src/diagnostics/xquery_exception.cpp (+4/-31)
src/diagnostics/zorba_exception.cpp (+0/-6)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1117952
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+165484@code.launchpad.net

Commit message

Removed #if 0's to enable new XML output code.

Description of the change

Removed #if 0's to enable new XML output code.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug-1117952 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug-1117952-2013-05-23T20-41-43.465Z is finished. The
  final status was:

  2 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

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-1117952-2013-05-24T00-37-43.703Z is finished. The final status was:

All tests succeeded!

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

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1, Needs Information < 1, Resubmit < 1. Got: 1 Approve.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
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-1117952-2013-05-24T14-51-44.301Z 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
=== modified file 'ChangeLog'
--- ChangeLog 2013-05-23 20:33:33 +0000
+++ ChangeLog 2013-05-24 00:36:28 +0000
@@ -13,6 +13,7 @@
13 if the FOR clause is followed by an orderby or groupby clause.13 if the FOR clause is followed by an orderby or groupby clause.
1414
15Bug Fixes/Other Changes:15Bug Fixes/Other Changes:
16 * Fixed bug #1117952 (Improve XML error output format)
16 * Fixed bug in hoisting through try-catch expr17 * Fixed bug in hoisting through try-catch expr
17 * Fixed bug #1162631 (format-integer 'w' format of negative numbers)18 * Fixed bug #1162631 (format-integer 'w' format of negative numbers)
18 * Fixed bug #1103115 (Timezone units as hours are wrong)19 * Fixed bug #1103115 (Timezone units as hours are wrong)
1920
=== modified file 'bin/CMakeLists.txt'
--- bin/CMakeLists.txt 2013-05-01 06:57:10 +0000
+++ bin/CMakeLists.txt 2013-05-24 00:36:28 +0000
@@ -91,12 +91,12 @@
91ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk1 PASS_REGULAR_EXPRESSION ".*mymod.xq>:22,8:.*:XPST0008.*")91ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk1 PASS_REGULAR_EXPRESSION ".*mymod.xq>:22,8:.*:XPST0008.*")
9292
93ZORBA_ADD_TEST(bin/zorba_compilechk2 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod.xq" -f -l -x)93ZORBA_ADD_TEST(bin/zorba_compilechk2 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod.xq" -f -l -x)
94ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk2 PASS_REGULAR_EXPRESSION ".*XPST0008.*mymod.xq.*lineStart=['\"]22['\"] columnStart=['\"]8['\"] lineEnd=['\"]22['\"] columnEnd=['\"]10['\"].*")94ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk2 PASS_REGULAR_EXPRESSION ".*XPST0008.*mymod.xq.*line-begin=['\"]22['\"] column-begin=['\"]8['\"] line-end=['\"]22['\"] column-end=['\"]10['\"].*")
9595
96# test compile checking to work with library modules that have an invalid target namespace uri96# test compile checking to work with library modules that have an invalid target namespace uri
97# test for bug #293441497# test for bug #2934414
98ZORBA_ADD_TEST(bin/zorba_compilechk3 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod2.xq" -f -l -x)98ZORBA_ADD_TEST(bin/zorba_compilechk3 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod2.xq" -f -l -x)
99ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk3 PASS_REGULAR_EXPRESSION ".*XQST0046.*mymod2.xq.*lineStart=['\"]17['\"] columnStart=['\"]1['\"] lineEnd=['\"]17['\"] columnEnd=['\"]26['\"].*")99ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk3 PASS_REGULAR_EXPRESSION ".*XQST0046.*mymod2.xq.*line-begin=['\"]17['\"] column-begin=['\"]1['\"] line-end=['\"]17['\"] column-end=['\"]26['\"].*")
100100
101# test the --option option to set an option in the static context101# test the --option option to set an option in the static context
102ZORBA_ADD_TEST(bin/zorba_option zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/option.xq" -f --option "{http://www.zorba-xquery.com}option=value")102ZORBA_ADD_TEST(bin/zorba_option zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/option.xq" -f --option "{http://www.zorba-xquery.com}option=value")
103103
=== modified file 'src/diagnostics/xquery_exception.cpp'
--- src/diagnostics/xquery_exception.cpp 2013-02-26 04:12:43 +0000
+++ src/diagnostics/xquery_exception.cpp 2013-05-24 00:36:28 +0000
@@ -143,23 +143,13 @@
143 if ( has_source() ) {143 if ( has_source() ) {
144 o << indent << "<location";144 o << indent << "<location";
145 print_uri( o, source_uri() );145 print_uri( o, source_uri() );
146#if 0
147 o << " line-begin=\"" << source_line() << '"';146 o << " line-begin=\"" << source_line() << '"';
147 if ( source_column() )
148 o << " column-begin=\"" << source_column() << '"';
148 if ( source_line_end() )149 if ( source_line_end() )
149 o << " line-end=\"" << source_line_end() << '"';150 o << " line-end=\"" << source_line_end() << '"';
150 if ( source_column() )
151 o << " column-begin=\"" << source_column() << '"';
152 if ( source_column_end() )151 if ( source_column_end() )
153 o << " column-end=\"" << source_column_end() << '"';152 o << " column-end=\"" << source_column_end() << '"';
154#else
155 o << " lineStart=\"" << source_line() << '"';
156 if ( source_column() )
157 o << " columnStart=\"" << source_column() << '"';
158 if ( source_line_end() )
159 o << " lineEnd=\"" << source_line_end() << '"';
160 if ( source_column_end() )
161 o << " columnEnd=\"" << source_column_end() << '"';
162#endif
163 o << "/>" << if_nl; // <location ...153 o << "/>" << if_nl; // <location ...
164154
165 if ( has_data() ) {155 if ( has_data() ) {
@@ -250,7 +240,6 @@
250 if ( fn_prefix && *fn_prefix )240 if ( fn_prefix && *fn_prefix )
251 o << " prefix=\"" << fn_prefix << '"';241 o << " prefix=\"" << fn_prefix << '"';
252242
253#if 0
254 o << " namespace=\"" << fn_name.ns() << '"'243 o << " namespace=\"" << fn_name.ns() << '"'
255 << " local-name=\"" << fn_name.localname()244 << " local-name=\"" << fn_name.localname()
256 << " arity=\"" << fn_arity << '"'245 << " arity=\"" << fn_arity << '"'
@@ -259,28 +248,12 @@
259 o << if_inc_indent << indent << "<location uri=\"" << filename << '"';248 o << if_inc_indent << indent << "<location uri=\"" << filename << '"';
260249
261 o << " line-begin=\"" << it->getLine() << '"';250 o << " line-begin=\"" << it->getLine() << '"';
251 if ( it->getColumn() )
252 o << " column-begin=\"" << it->getColumn() << '"';
262 if ( it->getLineEnd() )253 if ( it->getLineEnd() )
263 o << " line-end=\"" << it->getLineEnd() << '"';254 o << " line-end=\"" << it->getLineEnd() << '"';
264
265 o << " column-begin=\"" << it->getColumn() << '"';
266 if ( it->getColumnEnd() )255 if ( it->getColumnEnd() )
267 o << " column-end=\"" << it->getColumnEnd() << '"';256 o << " column-end=\"" << it->getColumnEnd() << '"';
268#else
269 o << " ns=\"" << fn_name.ns() << '"'
270 << " localName=\"" << fn_name.localname()
271 << " arity=\"" << fn_arity << '"'
272 << "\">" << if_nl; // <call ...
273
274 o << if_inc_indent << indent << "<location fileName=\"" << filename << '"';
275
276 o << " lineStart=\"" << it->getLine() << '"';
277 o << " columnStart=\"" << it->getColumn() << '"';
278
279 if ( it->getLineEnd() )
280 o << " lineEnd=\"" << it->getLineEnd() << '"';
281 if ( it->getColumnEnd() )
282 o << " columnEnd=\"" << it->getColumnEnd() << '"';
283#endif
284257
285 o << "/>" << if_nl // <location ...258 o << "/>" << if_nl // <location ...
286 << if_dec_indent << "</call>" << if_nl;259 << if_dec_indent << "</call>" << if_nl;
287260
=== modified file 'src/diagnostics/zorba_exception.cpp'
--- src/diagnostics/zorba_exception.cpp 2013-02-07 17:24:36 +0000
+++ src/diagnostics/zorba_exception.cpp 2013-05-24 00:36:28 +0000
@@ -128,15 +128,9 @@
128128
129 if ( as_xml ) {129 if ( as_xml ) {
130 diagnostic::QName const &q = d.qname();130 diagnostic::QName const &q = d.qname();
131#if 0
132 o << indent << "<kind>" << d.kind() << "</kind>" << if_nl131 o << indent << "<kind>" << d.kind() << "</kind>" << if_nl
133 << indent << "<code namespace=\"" << q.ns()132 << indent << "<code namespace=\"" << q.ns()
134 << "\" local-name=\"" << q.localname() << "\"/>"133 << "\" local-name=\"" << q.localname() << "\"/>"
135#else
136 o << indent << "<kind>" << d.kind() << ' '
137 << (is_warning( d ) ? "warning" : "error") << "</kind>" << if_nl
138 << indent << "<code>" << q << "</code>"
139#endif
140 << if_nl;134 << if_nl;
141 } else {135 } else {
142 //136 //

Subscribers

People subscribed via source and target branches