Under
- Solaris 2.8
- java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)
2 test suites dealing with regular expressions are also failing.
Antoine
Testsuite: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest
Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 0.532 sec
Testcase:
testReplace(org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest):
FAILED
expected:<AbcDef> but was:<Abc2>
junit.framework.AssertionFailedError: expected:<AbcDef> but was:<Abc2>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
at
org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest.testReplace(Replace
RegExpTest.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
Testcase:
testDontAddNewline1(org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest
): FAILED
Files match
junit.framework.AssertionFailedError: Files match
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at
org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest.testDontAddNewline1
(ReplaceRegExpTest.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
Testcase:
testDontAddNewline2(org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest
): FAILED
Files match
junit.framework.AssertionFailedError: Files match
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at
org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest.testDontAddNewline2
(ReplaceRegExpTest.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
TEST org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest FAILED
Testsuite: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexpTest
Tests run: 15, Failures: 3, Errors: 0, Time elapsed: 0.018 sec
Testcase:
testSubstitution(org.apache.tools.ant.util.regexp.Jdk14RegexpRegexpTest):
FAILED
expected:<...f...> but was:<......>
junit.framework.ComparisonFailure: expected:<...f...> but was:<......>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.tools.ant.util.regexp.RegexpTest.testSubstitution(RegexpTest.java
:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
Testcase:
testReplaceFirstSubstitution(org.apache.tools.ant.util.regexp.Jdk14RegexpReg
expTest): FAILED
expected:<...f...> but was:<......>
junit.framework.ComparisonFailure: expected:<...f...> but was:<......>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.tools.ant.util.regexp.RegexpTest.testReplaceFirstSubstitution(Reg
expTest.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
Testcase:
testReplaceAllSubstitution(org.apache.tools.ant.util.regexp.Jdk14RegexpRegex
pTest): FAILED
expected:<...fg-abedcf...> but was:<...g-abedc...>
junit.framework.ComparisonFailure: expected:<...fg-abedcf...> but
was:<...g-abedc...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.tools.ant.util.regexp.RegexpTest.testReplaceAllSubstitution(Regex
pTest.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:318)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:895)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:595)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:571)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:270)
at org.apache.tools.ant.Task.perform(Task.java:399)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1183)
at org.apache.tools.ant.Project.executeTargets(Project.java:1056)
at org.apache.tools.ant.Main.runBuild(Main.java:618)
at org.apache.tools.ant.Main.start(Main.java:201)
at org.apache.tools.ant.Main.main(Main.java:248)
TEST org.apache.tools.ant.util.regexp.Jdk14RegexpRegexpTest FAILED
----- Original Message -----
From: "Steve Loughran" <steve_l@iseran.com>
To: "Ant Developers List" <dev@ant.apache.org>
Sent: Wednesday, June 25, 2003 2:30 AM
Subject: linux test failures
> running on redhat 9.0, [SMP] and I'm seeing a regexp failure on Sun's
> SDK:
>
>
> Testcase:
> testHandleDollerMatch(org.apache.tools.ant.filters.TokenFilterTest): C
> aused an ERROR
> Illegal group reference
> java.lang.IllegalArgumentException: Illegal group reference
> at java.util.regex.Matcher.appendReplacement(Matcher.java:554)
> at
> org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp.substitute(Jdk14Re
> gexpRegexp.java:115)
> at
> org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.filter(TokenFil
> ter.java:729)
> at
> org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.java:174)
> at
> org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilterReader.j
> ava:122)
> at java.io.BufferedReader.read1(BufferedReader.java:185)
> at java.io.BufferedReader.read(BufferedReader.java:261)
> at
> org.apache.tools.ant.taskdefs.Concat.concatenate(Concat.java:526)
> at org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:483)
> at org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:392)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:254)
> at org.apache.tools.ant.Task.perform(Task.java:399)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1174)
> at
> org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:2
> 65)
> at
> org.apache.tools.ant.filters.TokenFilterTest.testHandleDollerMatch(To
> kenFilterTest.java:153)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni
> tTestRunner.java:318)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU
> nitTask.java:886)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
> ask.java:576)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT
> ask.java:552)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:254)
> at org.apache.tools.ant.Task.perform(Task.java:399)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1174)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1048)
> at org.apache.tools.ant.Main.runBuild(Main.java:611)
> at org.apache.tools.ant.Main.start(Main.java:198)
> at org.apache.tools.ant.Main.main(Main.java:245)
>
>
>
> BUILD FAILED
> /home/slo/Java/Apache/ant/build.xml:1467: Test
> org.apache.tools.ant.filters.Toke nFilterTest failed
>
>
>
> java version "1.4.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|