You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Magesh Umasankar <um...@apache.org> on 2002/04/04 03:42:33 UTC
ManifestTest fails on FreeBSD/JDK 1.1.8
Probably a linefeed issue, I guess:
This happens on FreeBSD 4.5-STABLE, JDK 1.1.8.
[junit]
[junit] Testsuite: org.apache.tools.ant.taskdefs.ManifestTest
[junit] Tests run: 19, Failures: 1, Errors: 0, Time elapsed: 1.705 sec
[junit]
[junit] Testcase:
testReplace(org.apache.tools.ant.taskdefs.ManifestTest): FAILED
[junit] expected:<Manifest-Version: 1.0
[junit] Created-By: Apache Ant 1.5alpha
[junit]
[junit] > but was:<Manifest-Version: 1.0
[junit] Created-By: Apache Ant 1.5alpha
[junit]
[junit] >
[junit] junit.framework.AssertionFailedError:
expected:<Manifest-Version: 1.0
[junit] Created-By: Apache Ant 1.5alpha
[junit]
[junit] > but was:<Manifest-Version: 1.0
[junit] Created-By: Apache Ant 1.5alpha
[junit]
[junit] >
[junit] at junit.framework.Assert.fail(Assert.java:51)
[junit] at junit.framework.Assert.failNotEquals(Assert.java:234)
[junit] at junit.framework.Assert.assertEquals(Assert.java:68)
[junit] at junit.framework.Assert.assertEquals(Assert.java:75)
[junit] at
org.apache.tools.ant.taskdefs.ManifestTest.testReplace(ManifestTest.java:303
)
[junit] at junit.framework.TestCase.runTest(TestCase.java:166)
[junit] at junit.framework.TestCase.runBare(TestCase.java:140)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at
junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:131)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a)
[junit] at org.apache.tools.ant.Task.perform(Task.java:313)
[junit] at org.apache.tools.ant.Target.execute(Target.java:309)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[junit] at
org.apache.tools.ant.Project.executeTarget(Project.java:1176)
[junit] at
org.apache.tools.ant.Project.executeTargets(Project.java:1118)
[junit] at org.apache.tools.ant.Main.runBuild(Main.java:573)
[junit] at org.apache.tools.ant.Main.start(Main.java:179)
[junit] at org.apache.tools.ant.Main.main(Main.java:201)
[junit]
[junit]
BUILD FAILED
/x1/home/umagesh/jakarta-ant/build.xml:1137: Test
org.apache.tools.ant.taskdefs.ManifestTest failed
Cheers,
Magesh
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ManifestTest fails on FreeBSD/JDK 1.1.8
Posted by Stefan Bodewig <bo...@apache.org>.
I have the fix (already on the way into cvs).
It took me quite some time to figure out - Manifest.Attribute.equals
calls Vector.equals for the values corresponding to a given attribute
key. Vector has an equals method that does what one expects in 1.2,
but it didn't have it in 1.1 - so we invoke Object.equals and this
fails as the Vectors are different objects that happen to have equal
contents.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ManifestTest fails on FreeBSD/JDK 1.1.8
Posted by Stefan Bodewig <bo...@apache.org>.
Again, I get the same on Linux. A JDK 1.1 issue?
Can anybody test with a Windows JDK 1.1?
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>