ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Test failures on Head Revision
Date Fri, 19 Oct 2001 10:06:01 GMT
----- Original Message -----
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-dev@jakarta.apache.org>
Sent: Thursday, October 18, 2001 10:56 AM
Subject: Re: Test failures on Head Revision


> On Sun, 14 Oct 2001, Jose Alberto Fernandez <j_a_fernandez@yahoo.com>
> wrote:
>
> > I am getting the following test failures, are they expected?
>
> I'm not aware of any "expected" test failures, it works for me.  Which
> OS are you using?
>

I would guess he is running windows.

The first one (description) depends on the xml-parser you are using. (Don't
know exactly which one works, but one of xerces/"the sun parser" works, the
other one fails this test).

The second test seems to fail because the "golden" file is checked in to cvs
as ascii, checkout converts lf to crlf and the testcase uses only lf and
tries to compare these files (just a guess for now).

More "expected" errors are that the IntrospectionHelperTest expects
"<theDriveWhereYouAreDevelopingOn>:\tmp" to be available, as it sets "/tmp"
as the basedir.

And I need to do some more investigation on why Sleep sometimes fails for
me - StackTrace is as follows:

--- cut ---
run-single-test:
    [junit] Testsuite: org.apache.tools.ant.taskdefs.SleepTest
    [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 2,253 sec
    [junit]
    [junit] Testcase: test1 took 0,09 sec
    [junit] Testcase: test2 took 0,08 sec
    [junit] Testcase: test3 took 2,083 sec
    [junit]     FAILED
    [junit] null
    [junit] junit.framework.AssertionFailedError
    [junit]     at junit.framework.Assert.fail(Assert.java:51)
    [junit]     at junit.framework.Assert.assert(Assert.java:20)
    [junit]     at junit.framework.Assert.assert(Assert.java:29)
    [junit]     at
org.apache.tools.ant.taskdefs.SleepTest.test3(SleepTest.java:
96)
    [junit]     at java.lang.reflect.Method.invoke(Native Method)
    [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(JUnitTestRunner.java:231)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
eInVM(JUnitTask.java:582)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:403)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:380)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:217)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:184)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:202)
    [junit]     at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [junit]     at
org.apache.tools.ant.Project.executeTargets(Project.java:560)

    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:462)
    [junit]     at org.apache.tools.ant.Main.start(Main.java:153)
    [junit]     at org.apache.tools.ant.Main.main(Main.java:176)
    [junit]

BUILD FAILED

--- cut ---

The same thing sometimes happens with test4 and also happens if I run all
the tests. Sometimes they work, sometimes not without changing anything on
the system and the same resource-usage (as good as you can tell from the
Windows task-manager).

Line 96 is "assert(timer.time()>=2000);"

Changing this to:

        long Time = timer.time();
        assert("Took: " + Time, Time>=2000);

revealed that my system only need 1993msecs to sleep 2secs :-) Don't know
why :-(

Nico



Mime
View raw message