Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 76267 invoked by uid 500); 26 Jun 2003 16:51:26 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 76076 invoked from network); 26 Jun 2003 16:51:24 -0000 Received: from relay.t-intra.de (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 26 Jun 2003 16:51:24 -0000 Received: from DJ0X820J (p5080e2b2.dip0.t-ipconnect.de [80.128.226.178]) by relay.t-online-com.de (SMTPSVC(1.0.0.2)) with ESMTP id 9F37714CABB for ; Thu, 26 Jun 2003 18:34:20 +0200 (CEST) Message-ID: <028401c33c03$4ffcc580$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Developers List" References: <20030625002434.27700.qmail@nagoya.betaversion.org> <1056501032.20687.3.camel@chamonix> Subject: test failures of regexp Date: Thu, 26 Jun 2003 18:52:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: but was: junit.framework.AssertionFailedError: expected: but was: 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" To: "Ant Developers List" 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