I do not know I just created the configuration for XMLWriter.

Stef

Le 11/1/15 16:10, Ben Coman a écrit :
I am having a look at some failing tests for CIXMLPublisherTest. This uses XMLWriter, which I haven't used before, so I'm looking for confirmation of the semantics I've guessed for #writeWith:. It seems that #writeWith: should not be nested. Since...

xmlWriter := XMLWriter new.
xmlWriter writeWith: [ :writer |
writer
tag: 'report'
with: [
writer tag: 'name' with: 'TestName - Report'.
xmlWriter writeWith: [ :writer2 |
writer2 tag: 'finality' with: 'succeed'
]
]
]

...produces an error "CollectionIsEmpty: an OrderedCollection() is empty"

This pattern is the cause of 4 of the 8 tests for CIXMLPublisherTest to fail. In this case CIXMLPublisher >> publishValidationResult: does a #writeWith: then calls #publishSuccess: which does another #writeWith: .

That example was done on top of...
$ wget https://ci.inria.fr/pharo/job/Pharo-4.0-Issue-Tracker-Image/736/artifact/Pharo-4.0-Issue-Tracker-Image.zip
$ unzip *zip
$ wget --quiet -O - get.pharo.org/vmLatest <http://get.pharo.org/vmLatest> | bash
$ ./pharo-ui *.image

I have logged https://pharo.fogbugz.com/default.asp?14708

cheers -ben

Reply via email to