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
1=== modified file 'ChangeLog'
2--- ChangeLog 2013-05-23 20:33:33 +0000
3+++ ChangeLog 2013-05-24 00:36:28 +0000
4@@ -13,6 +13,7 @@
5 if the FOR clause is followed by an orderby or groupby clause.
6
7 Bug Fixes/Other Changes:
8+ * Fixed bug #1117952 (Improve XML error output format)
9 * Fixed bug in hoisting through try-catch expr
10 * Fixed bug #1162631 (format-integer 'w' format of negative numbers)
11 * Fixed bug #1103115 (Timezone units as hours are wrong)
12
13=== modified file 'bin/CMakeLists.txt'
14--- bin/CMakeLists.txt 2013-05-01 06:57:10 +0000
15+++ bin/CMakeLists.txt 2013-05-24 00:36:28 +0000
16@@ -91,12 +91,12 @@
17 ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk1 PASS_REGULAR_EXPRESSION ".*mymod.xq>:22,8:.*:XPST0008.*")
18
19 ZORBA_ADD_TEST(bin/zorba_compilechk2 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod.xq" -f -l -x)
20-ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk2 PASS_REGULAR_EXPRESSION ".*XPST0008.*mymod.xq.*lineStart=['\"]22['\"] columnStart=['\"]8['\"] lineEnd=['\"]22['\"] columnEnd=['\"]10['\"].*")
21+ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk2 PASS_REGULAR_EXPRESSION ".*XPST0008.*mymod.xq.*line-begin=['\"]22['\"] column-begin=['\"]8['\"] line-end=['\"]22['\"] column-end=['\"]10['\"].*")
22
23 # test compile checking to work with library modules that have an invalid target namespace uri
24 # test for bug #2934414
25 ZORBA_ADD_TEST(bin/zorba_compilechk3 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/mymod2.xq" -f -l -x)
26-ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk3 PASS_REGULAR_EXPRESSION ".*XQST0046.*mymod2.xq.*lineStart=['\"]17['\"] columnStart=['\"]1['\"] lineEnd=['\"]17['\"] columnEnd=['\"]26['\"].*")
27+ZORBA_SET_TEST_PROPERTY(bin/zorba_compilechk3 PASS_REGULAR_EXPRESSION ".*XQST0046.*mymod2.xq.*line-begin=['\"]17['\"] column-begin=['\"]1['\"] line-end=['\"]17['\"] column-end=['\"]26['\"].*")
28
29 # test the --option option to set an option in the static context
30 ZORBA_ADD_TEST(bin/zorba_option zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/option.xq" -f --option "{http://www.zorba-xquery.com}option=value")
31
32=== modified file 'src/diagnostics/xquery_exception.cpp'
33--- src/diagnostics/xquery_exception.cpp 2013-02-26 04:12:43 +0000
34+++ src/diagnostics/xquery_exception.cpp 2013-05-24 00:36:28 +0000
35@@ -143,23 +143,13 @@
36 if ( has_source() ) {
37 o << indent << "<location";
38 print_uri( o, source_uri() );
39-#if 0
40 o << " line-begin=\"" << source_line() << '"';
41+ if ( source_column() )
42+ o << " column-begin=\"" << source_column() << '"';
43 if ( source_line_end() )
44 o << " line-end=\"" << source_line_end() << '"';
45- if ( source_column() )
46- o << " column-begin=\"" << source_column() << '"';
47 if ( source_column_end() )
48 o << " column-end=\"" << source_column_end() << '"';
49-#else
50- o << " lineStart=\"" << source_line() << '"';
51- if ( source_column() )
52- o << " columnStart=\"" << source_column() << '"';
53- if ( source_line_end() )
54- o << " lineEnd=\"" << source_line_end() << '"';
55- if ( source_column_end() )
56- o << " columnEnd=\"" << source_column_end() << '"';
57-#endif
58 o << "/>" << if_nl; // <location ...
59
60 if ( has_data() ) {
61@@ -250,7 +240,6 @@
62 if ( fn_prefix && *fn_prefix )
63 o << " prefix=\"" << fn_prefix << '"';
64
65-#if 0
66 o << " namespace=\"" << fn_name.ns() << '"'
67 << " local-name=\"" << fn_name.localname()
68 << " arity=\"" << fn_arity << '"'
69@@ -259,28 +248,12 @@
70 o << if_inc_indent << indent << "<location uri=\"" << filename << '"';
71
72 o << " line-begin=\"" << it->getLine() << '"';
73+ if ( it->getColumn() )
74+ o << " column-begin=\"" << it->getColumn() << '"';
75 if ( it->getLineEnd() )
76 o << " line-end=\"" << it->getLineEnd() << '"';
77-
78- o << " column-begin=\"" << it->getColumn() << '"';
79 if ( it->getColumnEnd() )
80 o << " column-end=\"" << it->getColumnEnd() << '"';
81-#else
82- o << " ns=\"" << fn_name.ns() << '"'
83- << " localName=\"" << fn_name.localname()
84- << " arity=\"" << fn_arity << '"'
85- << "\">" << if_nl; // <call ...
86-
87- o << if_inc_indent << indent << "<location fileName=\"" << filename << '"';
88-
89- o << " lineStart=\"" << it->getLine() << '"';
90- o << " columnStart=\"" << it->getColumn() << '"';
91-
92- if ( it->getLineEnd() )
93- o << " lineEnd=\"" << it->getLineEnd() << '"';
94- if ( it->getColumnEnd() )
95- o << " columnEnd=\"" << it->getColumnEnd() << '"';
96-#endif
97
98 o << "/>" << if_nl // <location ...
99 << if_dec_indent << "</call>" << if_nl;
100
101=== modified file 'src/diagnostics/zorba_exception.cpp'
102--- src/diagnostics/zorba_exception.cpp 2013-02-07 17:24:36 +0000
103+++ src/diagnostics/zorba_exception.cpp 2013-05-24 00:36:28 +0000
104@@ -128,15 +128,9 @@
105
106 if ( as_xml ) {
107 diagnostic::QName const &q = d.qname();
108-#if 0
109 o << indent << "<kind>" << d.kind() << "</kind>" << if_nl
110 << indent << "<code namespace=\"" << q.ns()
111 << "\" local-name=\"" << q.localname() << "\"/>"
112-#else
113- o << indent << "<kind>" << d.kind() << ' '
114- << (is_warning( d ) ? "warning" : "error") << "</kind>" << if_nl
115- << indent << "<code>" << q << "</code>"
116-#endif
117 << if_nl;
118 } else {
119 //

Subscribers

People subscribed via source and target branches