Merge lp:~zorba-coders/zorba/bug867693 into lp:zorba/image-module

Proposed by Rodolfo Ochoa
Status: Merged
Approved by: Chris Hillery
Approved revision: 55
Merged at revision: 53
Proposed branch: lp:~zorba-coders/zorba/bug867693
Merge into: lp:zorba/image-module
Diff against target: 43 lines (+4/-10)
2 files modified
src/com/zorba-xquery/www/modules/image/CMakeLists.txt (+2/-4)
src/com/zorba-xquery/www/modules/image/image_commons/image_function.cpp (+2/-6)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug867693
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Rodolfo Ochoa Approve
Review via email: mp+126578@code.launchpad.net

Commit message

test fixed

Description of the change

test fixed

To post a comment you must log in.
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 bug867693-2012-09-27T00-32-40.523Z 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. Got: 1 Pending.

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) :
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 bug867693-2012-10-17T23-00-39.162Z 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/com/zorba-xquery/www/modules/image/CMakeLists.txt'
2--- src/com/zorba-xquery/www/modules/image/CMakeLists.txt 2012-07-20 20:26:02 +0000
3+++ src/com/zorba-xquery/www/modules/image/CMakeLists.txt 2012-09-27 00:29:24 +0000
4@@ -48,12 +48,10 @@
5 EXTRA_SOURCES image_commons
6 LINK_LIBRARIES ${ImageMagick_LIBRARIES})
7
8+ # this could crash because of the ImageMagick version
9+ # must be compiled in debug mode
10 SET (KNOWN_CRASHES)
11 IF (WIN32)
12- LIST (APPEND KNOWN_CRASHES
13- zorba_image_module/image/basic_svg.xq 867693
14- )
15-
16 IF (CMAKE_BUILD_TYPE STREQUAL "Debug")
17 LIST (APPEND KNOWN_CRASHES
18 zorba_image_module/image/basic.xq 867693
19
20=== modified file 'src/com/zorba-xquery/www/modules/image/image_commons/image_function.cpp'
21--- src/com/zorba-xquery/www/modules/image/image_commons/image_function.cpp 2012-08-15 21:26:45 +0000
22+++ src/com/zorba-xquery/www/modules/image/image_commons/image_function.cpp 2012-09-27 00:29:24 +0000
23@@ -55,9 +55,7 @@
24 // constuct error QName
25 String lNamespace = "http://www.zorba-xquery.com/modules/image/error";
26 String lLocalname = "IM001";
27- Item lQName;
28- Iterator_t lDummyIterator;
29- aDynamicContext->getVariable(lNamespace, lLocalname, lQName, lDummyIterator);
30+ Item lQName = ImageModule::getItemFactory()->createQName(lNamespace, "image", lLocalname);
31 // if we have zero length image, then tell the user so
32 if (std::string(aMessage).find("zero-length") != std::string::npos) {
33 lErrorMessage << "The passed xs:base64Binary seems to be empty.";
34@@ -71,9 +69,7 @@
35 void
36 ImageFunction::throwErrorWithQName (const DynamicContext* aDynamicContext, const String& aLocalName, const String& aMessage) {
37 String lNamespace = "http://www.zorba-xquery.com/modules/image/error";
38- Item lQName;
39- Iterator_t lDummyIterator;
40- aDynamicContext->getVariable(lNamespace, aLocalName, lQName, lDummyIterator);
41+ Item lQName = ImageModule::getItemFactory()->createQName(lNamespace, "image", aLocalName);
42 USER_EXCEPTION(lQName, aMessage);
43 }
44

Subscribers

People subscribed via source and target branches

to all changes: