Which tests, exactly? The newFile tests in FileFilterUtilsTest? I found that the lastModified times of files created sequentially during execution of the test did not go in expected chronological order. I thought this was due to clock precision (things were off by < 100 ms), but I am no expert on how the OS and jdk play together here. Adding the delay in the spin, which is intended to force sequencing of events, fixed the problem for me on RH FC2 running tests from maven.
Phil On 3/5/06, Jörg Schaible <[EMAIL PROTECTED]> wrote: > Hi Phil, > > Phil Steitz wrote: > > > Found the source of the test failures for me. I think the code and > > test cases are correct, but somehow the clock precision or something > > else is messing up the chronology for me. The tests all pass if I > > make spin wait until a full second has elapsed: > > > > private void spin(long now) { > > while (System.currentTimeMillis() <= now + 1000); <-- add a sec. > > } > > > > That slows down the tests a bit, but makes them pass. Has this been > > reported before? > > Hmmm. Even with this change the test fails for me from within Eclipse on > Linux. > > - Jörg > > > --------------------------------------------------------------------- > 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]