commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: [io] Help with testing on Unix - FileSystemUtils returns incorrect free space on Linux
Date Mon, 06 Mar 2006 00:21:56 GMT
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

- Jörg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message