That directory is created in selector.xml target "modifiedselectortest-scenario-prepare" src\etc\testcases\types\selectortest\src is the value of ${test.dir}/src. And ${test.dir} is deleted in target "cleanup" which is called from ModifiedSelectorTest.doScenarioTest():542:bft.tearDown();
All three scenario-tests use that common method. ... ops, spell check of line 508: testSceanrioCoreSelectorSettings() should be testScenarioCoreSelectorSettings() ^^ The bft.tearDown() is done in a finally block so it should be executed. What do you think? Jan > -----Original Message----- > From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2003 11:16 AM > To: Ant Developers List > Subject: AW: still one test failing in ant 1.6 : ModifiedSelectorTest > > > > Hi Jan, > > there is a subdirectory called old on in my test environment : > > src\etc\testcases\types\selectortest\src > > this one gets copied to to-2, generating the error. > I do not know whether this is something dirty in my > environment or an error > in the testcase. > > Cheers, > Antoine > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 30. September 2003 11:10 > An: [EMAIL PROTECTED] > Betreff: RE: still one test failing in ant 1.6 : ModifiedSelectorTest > > > Sorry, I can´t - because I don´t get this error. > All tests pass on my machine. On JDK 1.2 and 1.4 (Win2000) > > And I can only (try to) fix errors which occur ... > > > > Jan > > > > Classic VM (build JDK-1.2.1_004, native threads) > ================================================ > ant>build > ... Bootstrapping Ant Distribution > JAVA_HOME=c:\seu\jdk121_04 > JAVA=c:\seu\jdk121_04\bin\java > JAVAC=c:\seu\jdk121_04\bin\javac > ... > ant>ant test -Dtest.haltonfailure=false > ... > run-which: > [which] java.version=1.2.1 > run-tests: > ... > Testcase: > testVector(org.apache.tools.ant.taskdefs.optional.sitraka.Clas > sFileTest): > FAILED > void <init>() > junit.framework.AssertionFailedError: void <init>() > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Compiled Code) > at > org.apache.tools.ant.taskdefs.optional.sitraka.ClassFileTest.a > ssertHasMethod > (Compiled Code) > at > org.apache.tools.ant.taskdefs.optional.sitraka.ClassFileTest.t > estVector(Clas > sFileTest.java:83) > ... > Testsuite: > org.apache.tools.ant.types.selectors.ModifiedSelectorTest > Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 10,075 sec > > > > Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) > ======================================================== > ant>build.bat > ... Bootstrapping Ant Distribution > JAVA_HOME=c:\seu\jdk142 > JAVA=c:\seu\jdk142\bin\java > JAVAC=c:\seu\jdk142\bin\javac > ... > ant>ant test -Dtest.haltonfailure=false > ... > [which] java.version=1.4.2 > ... > Testcase: > testRecreateWithUpdateNewerFile(org.apache.tools.ant.taskdefs. > JarTest): > FAILED > jar has been recreated in testRecreateWithUpdateNewerFile > junit.framework.AssertionFailedError: jar has been recreated in > testRecreateWithUpdateNewerFile > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at > org.apache.tools.ant.taskdefs.JarTest.testRecreate(JarTest.java:171) > at > org.apache.tools.ant.taskdefs.JarTest.testRecreateWithUpdateNe > werFile(JarTes > t.java:157) > ... > Testsuite: org.apache.tools.ant.types.selectors.ModifiedSelectorTest > Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 8,472 sec > ... > > > > -----Original Message----- > > From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 30, 2003 10:18 AM > > To: Ant Developers List > > Subject: still one test failing in ant 1.6 : ModifiedSelectorTest > > > > > > Jan, could you try to fix this ? > > Maybe there is a timing issue there. > > I am running the test on Windows2000. > > I get the same failure within cygwin and running the test in > > the JunitTest > > runner of IDEA. > > Cheers, > > Antoine > > > > [junit] Testsuite: > > org.apache.tools.ant.types.selectors.ModifiedSelectorTest > > [junit] Tests run: 22, Failures: 3, Errors: 0, Time > > elapsed: 7,171 sec > > > > [junit] Testcase: > > testScenarioCoreSelectorDefaults(org.apache.tools.ant.types.se > > lectors.Modifi > > edSelectorTest): FAILED > > [junit] Too much files copied on second time. > > [junit] junit.framework.AssertionFailedError: Too much > > files copied on > > second time. > > [junit] at junit.framework.Assert.fail(Assert.java:47) > > [junit] at > junit.framework.Assert.assertTrue(Assert.java:20) > > [junit] at > > org.apache.tools.ant.types.selectors.ModifiedSelectorTest.doSc > > enarioTest(Mod > > ifiedSelectorTest.java:536) > > [junit] at > > org.apache.tools.ant.types.selectors.ModifiedSelectorTest.test > > ScenarioCoreSe > > lectorDefaults(ModifiedSelectorTest.java:503) > > ............... > > > > > > [junit] Testcase: > > testSceanrioCoreSelectorSettings(org.apache.tools.ant.types.se > > lectors.Modifi > > edSelectorTest): FAILED > > [junit] Too much files copied on second time. > > [junit] junit.framework.AssertionFailedError: Too much > > files copied on > > second time. > > > > [junit] Testcase: > > testScenarioCustomSelectorSettings(org.apache.tools.ant.types. > > selectors.Modi > > fiedSelectorTest): FAILED > > [junit] Too much files copied on second time. > > [junit] junit.framework.AssertionFailedError: Too much > > files copied on > > second time. > > > > > > [junit] TEST > > org.apache.tools.ant.types.selectors.ModifiedSelectorTest > > FAILED > > [junit] Testsuite: > > org.apache.tools.ant.types.selectors.PresentSelectorTest > > [junit] Tests run: 3, Failures: 0, Errors: 0, Time > > elapsed: 7,371 sec > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >