On 3/26/07, Eric Crahen <[EMAIL PROTECTED]> wrote:
I ran into an intermittent error with the unit tests. This one is from
testFull() on the tip of trunk.
[junit] Running
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriterTest
[junit] <artifact name="yourartifact9-1"
type="jar"
ext="jar" conf="myconf1,myconf2"/>
[junit] <artifact name="yourartifact9-2"
type="jar"
ext="jar" conf="myconf2,myconf3]"/>
[junit] </dependency>
[junit] ...> but was:<...v="9.1"
conf="myconf[3->default;myconf2->default;myconf1->default">
[junit] <artifact name="yourartifact9-2"
type="jar"
ext="jar" conf="myconf2,myconf3"/>
[junit] <artifact name="yourartifact9-1"
type="jar"
ext="jar" conf="myconf1,myconf2]"/>
[junit] <.
From the looks of it the tests have assumed an order that isn't really
enforced by the writer. I'm not familiar enough with the code to say there
is a bug in the writer which should be writing these things out in an
expected order, or if the tests should be doing a content comparison
instead
of a string comparison.
Yes, this is already reported in IVY-374, and I'm just working on it.
- Xavier
--
- Eric