ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rod MacKenzie <rod.n.macken...@gmail.com>
Subject Re: ant test failures
Date Tue, 07 Dec 2010 20:18:35 GMT
On 7 December 2010 18:34, Antoine Levy-Lambert <antoine@gmx.de> wrote:
> Hi,
>
> I just built trunk and ran the tests on Mac OS.
>
> I am not 100% sure whether I have been using Java 1.5 or 1.6 as my
> JAVA_HOME setting and java -version seem to be telling different stories
> ( my JAVA_HOME has a 1.5.0 in the path, but $JAVA_HOME/bin/java -version
> says 1.6).

Are you using Mac OS X 10.6? If so it only supports Java 1.6 by
default but has links/aliases for versions 1.3 to 1.5 that will run
Java 1.6. That may explain the Java version confusion.

Rod


>
> Anyway ExecuteJavaTest and apply-test.xml each have one failure.
>
> Regards,
>
> Antoine
>
>
> Testcase:
> testNoTimeOutForked(org.apache.tools.ant.taskdefs.ExecuteJavaTest):
>  FAILED
> process should not have been killed
> junit.framework.AssertionFailedError: process should not have been killed
>    at junit.framework.Assert.fail(Assert.java:47)
>    at junit.framework.Assert.assertTrue(Assert.java:20)
>    at
> org.apache.tools.ant.taskdefs.ExecuteJavaTest.testNoTimeOutForked(ExecuteJavaTest.java:94)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at junit.framework.TestCase.runTest(TestCase.java:164)
>    at junit.framework.TestCase.runBare(TestCase.java:130)
>    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:120)
>    at junit.framework.TestSuite.runTest(TestSuite.java:230)
>    at junit.framework.TestSuite.run(TestSuite.java:225)
>    at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
>    at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
>    at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:879)
>
>
> TEST org.apache.tools.ant.taskdefs.ExecuteJavaTest FAILED
>
> Build File:
> /Users/antoine/dev/asf/ant-core/src/tests/antunit/taskdefs/exec/apply-test.xml
> Tests run: 30, Failures: 1, Errors: 0, Time elapsed: 105.369 sec
> Target: testSrcfilePrefix took 4.414 sec
> Target: testRedirectorWithParallel took 6.5 sec
> Target: testLsPathParallel took 1.076 sec
> Target: testForce took 1.498 sec
> Target: testRedirector14  FAILED
>    at line 611, column 76
>    Message: Expected log to contain 'z after y after blahx after y
> after blah' at level info
>    took 2.445 sec
> Target: testRedirector13 took 7.294 sec
> Target: testRedirector12 took 3.455 sec
> Target: testRedirector11 took 1.353 sec
> Target: testRedirector10 took 3.339 sec
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message