Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 28701 invoked from network); 4 Mar 2006 21:38:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Mar 2006 21:38:41 -0000 Received: (qmail 97191 invoked by uid 500); 4 Mar 2006 21:39:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 97112 invoked by uid 500); 4 Mar 2006 21:39:25 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 97101 invoked by uid 99); 4 Mar 2006 21:39:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 13:39:25 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of phil.steitz@gmail.com designates 64.233.182.202 as permitted sender) Received: from [64.233.182.202] (HELO nproxy.gmail.com) (64.233.182.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 13:39:24 -0800 Received: by nproxy.gmail.com with SMTP id c29so681050nfb for ; Sat, 04 Mar 2006 13:39:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cDySWBxtAq4/n+QLsQYeczp/E45n2IbImPVCwsJfwuRgiLwzc1Okp4D2gQ+k/XILUUF5IOJ5FodxXqtPNwXlUTtg7vo0cykTK1AUCxoAwp1FgB0jUwM9ajQM2u0H0ek9kBQXI7ce6WABSB9vLU7+WRlLCtRoC4neor5xzqqlUTg= Received: by 10.48.3.3 with SMTP id 3mr341352nfc; Sat, 04 Mar 2006 13:39:02 -0800 (PST) Received: by 10.49.27.2 with HTTP; Sat, 4 Mar 2006 13:39:01 -0800 (PST) Message-ID: <8a81b4af0603041339n6d511869v19214be78eedef3f@mail.gmail.com> Date: Sat, 4 Mar 2006 14:39:01 -0700 From: "Phil Steitz" To: "Jakarta Commons Developers List" Subject: Re: [io] Help with testing on Unix - FileSystemUtils returns incorrect free space on Linux In-Reply-To: <8a81b4af0603041228r70c2b057r96b4301bc44399d2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060304191628.3FEDADD@ajax.apache.org> <4409E9A3.4020502@btopenworld.com> <8a81b4af0603041228r70c2b057r96b4301bc44399d2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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() <=3D now + 1000); <-- add a sec. } That slows down the tests a bit, but makes them pass. Has this been reported before? Phil On 3/4/06, Phil Steitz wrote: > Works4me on RH FC 2, with both Kb and original method returning kbytes. > > Looks like there is a cut and paste error in the javadoc for the new > method, though. The "Kb" seems to be missing from the examples. > > I am also getting test failures for the FileFilterTestCase. The > newfile tests are failing. I will look at this some more. > > Phil > > On 3/4/06, Stephen Colebourne wrote: > > If anyone has the ability to test FileSystemUtils.freeSpaceKb() on boxe= s > > other than WindowsXP I'd like to know if the results tally what you'd > > expect by calling dir/df directly. > > > > thanks > > Stephen > > > > > > bugzilla@apache.org wrote: > > > http://issues.apache.org/bugzilla/show_bug.cgi?id=3D38574 > > > ------- Additional Comments From scolebourne@joda.org 2006-03-04 20:= 16 ------- > > > FileSystemUtils.freeSpaceKb(drive) > > > New method that unifies result to be in kilobytes > > > > > > Please reopen if you believe that the new method returns the wrong re= sult (I can > > > on test on Windows) > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org